You could just create different style sheets for each color profile, and load those depending on which month it is. Here’s a basic example showing how you could load a halloween.css file for october, and an xmas.css file for december. The code below would go in your themes functions.php file:
add_action('wp_enqueue_scripts', 'seasonalCSS');
function seasonalCSS()
{
// register stylesheets to be loaded safely
wp_register_style('halloween', get_stylesheet_directory_uri() . "/halloween.css");
wp_register_style('xmas', get_stylesheet_directory_uri() . "/xmas.css");
switch(date('n'))
{
case 10: // if it is october...
wp_enqueue_style('halloween'); // load halloween.css
break;
case 12: // if it is december...
wp_enqueue_style('xmas'); // load xmas.css
break;
}
}
Related Posts:
- WordPress frameworks and parent themes [closed]
- WordPress as Backend, Laravel Front End: How to connect Routes?
- Redux callback action
- Website redesign – New theme – Help needed
- Advantages of wordpress theme vs wordpress as a backend only [closed]
- Frameworks for Premium Theming [duplicate]
- how to add version of style.css in wordpress
- What is the role and history of the $content_width global variable?
- How to set thumbnail image for a (child) theme
- Add a page outside of the current theme?
- How to create a live demo page for a theme? [closed]
- Is it possible to stop a theme activation when a certain plugin is not activated
- add image size still doesn’t work even after regenerating thumbnails
- Best location for theme translation files
- Two Navigation Menus in Themes Produce the same menus?
- WordPress themes under GPL license
- How can I customize the search results in Bones theme?
- How to develop a theme while having another show up
- When does WordPress wrap inline scripts in CDATA?
- Being asked to update a theme that I don’t have
- I want to run different WordPress websites under the same database
- Switch to other theme at URL
- How to go about pre generating css file with variables from theme options
- How to load a different theme for categories?
- How can I create an “excerpt” with text that won’t be displayed in the post itself?
- Can I update themes without enabling maintenance mode?
- How to change sidebar per page?
- Add a series of checkboxes to theme options
- WordPress Theme Development Seemingly Awful Partitioning of Includes?
- Hide default “Recent Comments” Widget if there are no comments yet
- Showing post thumbnail (attachment) on the archive.php category listing
- Theme Check warning wrong direcory for theme
- Static page not working
- Posts and Pages not showing on admin, but showing in theme
- Error defining a gutenberg block in a theme
- How can I add class to every quote element?
- Looking for a fully customisable WP responsive theme to develop a small scale fiverr type site for voice artists [closed]
- Page dissapears when i click save
- How to use command lines an activate theme in wp – cli also setup Vagrant/Sage Theme?
- Can’t resize logo in responsive theme?
- Is wordpress big enough for my project [closed]
- Using twitter bootstrap in a theme
- What hook is the currently active theme’s functions.php file loaded on? [duplicate]
- How to get theme screenshot
- Theme doesn’t support shortcodes
- i would like to have 3 default columns editable in guttenberg
- Define theme information other than through style.css
- Change avatar on themed profile page
- Trying to uninstall a theme, but it’s hijacking my home page
- WordPress 5.1 upgrade has lost the parent theme JavaScript
- Is it possible to open a page with a different theme?
- How to add some php code in header.php using plugin
- WordPress Theme and Plugin Name extraction
- Create page options for theme?
- Homepage showing a simple listing of title, featured image, then posted on
- Where is the best place to catch useragent?
- Knowing blog name using blog id
- Alternative to Back End Dashboard?
- How can I change the prev / next buttons text to Dutch?
- Woocommerce single product image blurred and small. Actual image is big
- Adding a template in WPTouch
- List of categories instead of dropdown menu selector in admin options
- WordPress doesn’t recognise created theme
- Twenty Eleven NOT valid
- Query for all themes?
- How can I show some standard html code across any theme I install?
- Losing theme customization when switching from a theme to a child
- First click to blog title does not open the blog article
- Problem of not changing the front and bottom of the Woodmart template by activating the really simple ssl pro plugin in WordPress
- Please help me clear my confusions about WordPress
- What is the correct way to set up a staging server and use github for version control?
- How can I theme or style the lost password page without a plugin?
- Custom homepage with recent blog posts
- Dynamic image for Jumbotron on WordPress Custom Theme
- How to implement theme option to change bootstrap 4 container from .container to .container-fluid
- how make wp include urls as https?
- how to costume title single page
- use a Thumbnail size in post
- Why does WordPress Editor Only Use Half the Box?
- 500 Internal Errors
- Installing Theme from uploaded file. Not uploaded theme?
- Where can I find a theme that has a big banner
- Strange Theme Error – parent style occasionally showing though child theme
- WordPress theme not updating in Other browsers
- WP-CLI wp theme install url PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
- Site broken after deleting inactive themes [closed]
- Can i add wordpress editor to my custom theme option? [closed]
- Firebug and Chrome rendering two body tags
- Does WordPress provide themes_api function?
- Where do URI files come from?
- How to show tags in posts with a theme that does not do it
- Converting HTML5 to XHTML
- Best way to include pagination in a theme [closed]
- What happens to bespoke page template references on theme change?
- Stylesheet not being loaded? [closed]
- How to remove header “ish” label [closed]
- How to change the standard width of a page
- Get header/footer list for a theme
- Fatal error Class-wp-hook, again, but not sure what’s triggering it
- How to remove pop up on website (css changes not visible)?