What exactly and better will be is to submit the dropdown and check which color is submitted. Based on that particular color chose your css file.
e.g. you create 3 css files named as blue-bg.css, green-bg.css and black-bg.css
then just put the related colors in those css files. e.g.
body {
background-color: blue; // same code but change the color for all files
}
Then in your header file you can check the posted value of the dropdown and load the css file based on the condition you submitted.
Hope it helps you out.
Regards
Related Posts:
- Making update notification functionality for my themes
- how to create a conditional content_width for a wordpress theme?
- How To Add New Option Types To Option Tree?
- Best practice for including plugins as part of a theme?
- Modular theme settings
- Where do I find the functions triggered within a hook?
- How to determine the current widget’s parent container (sidebar widget id)
- Comment form not display properly?
- How to add menu support to a theme?
- Setting up partial Right-to-Left admin interface
- Moving functionality from functions.php to classes?
- Is it possible to display the admin bar while in the Theme Customizer?
- How to Change CSS Variable value in Theme Customizer Live Preview
- Pagination & get_pages?
- Custom nav menu is created with default pages, but not hooked to theme’s custom menu location
- How to pass code from header.php to footer.php
- Move my theme style.css into a folder
- Easy WordPress theme creation tutorial? [closed]
- How do I add a post to a menu
- Demo Import changes terms ids
- how to change WordPress menu markup/classes
- Best practices: Custom theme sidebar menu – hardcode or widget?
- Is it a good idea to make whole theme widgetized?
- Gutenberg Reusable Block as part of WordPress Theme page
- How to get the URI to a theme without the domain. Example: /wp-content/themes/my-theme
- Does WordPress count as a means to learn web development? [closed]
- How to handle custom form submission?
- menu behavior is not as expected
- My custom theme does not load the translations
- Prevent theme from activating [duplicate]
- Messing up with transient API – getting flushed on refresh
- A mystery 300px image size
- Custom Field returning Numerical Value for Image rather than URL
- which is the best way to customize nav-menu-template.php?
- wp-cli: For development, how can I activate a theme that is on the local disk but not zipped?
- Inheritance of parent theme plugin files in a child theme
- How to make a local cache of mshots images
- Why is the Page Template dropdown menu using the wrong file name?
- Display a list of certain categories by ID
- 2 localizations inside a WordPress theme
- Implementing FancyBox
- Single Page Design, Storing in Theme Options
- Child theme enqueue scripts using new functions
- Should I change text-domain of TGM library inside theme?
- Custom theme updater – random string in new theme name
- Show woocommerce categories on my theme menu styling
- “Bad element for masonry: undefined” why this error us occuring? [closed]
- Scroll to position on page for category pages only — woocommerce
- How to Find the Page the Front Page is Using?
- My jQuery is enqueued properly. So why isn’t it working?
- Database Tables in WordPress Theme
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- 3 Level Deep Navigation Menu Not Showing All Levels
- Call to require(‘../../../wp-blog-header.php’) results in 404 error?
- wp_enqueue_script not working?
- Random white space before doctype
- How to add menù section to my WordPress template?
- WordPress Theme that returns all posts as a JSON object?
- Can I make a Customizer dropdown-pages list include private pages?
- HTML block gutenberg templates
- Use a filter on menu items that have children
- Do I need to escape get_the_post_thumbnail function?
- Why is switching between themes breaking my child theme?
- Reusable and site-wide content that can be used in a theme
- How to disable WordPress to put P tags?
- New to WordPress – Read the Codex, Other Docs; Still Confused
- CSS preprocessor file messed up after compiled
- Style first 3 posts differently with WP_Query [duplicate]
- Get video from the post on homepage
- is_front_page use in sidebar.php
- matisse theme show excerpts not whole content
- WordPress Themes Directory: Template which hits the standards?
- My custom taxonomies are not showing up in the admin menus
- How to change a local wordpress installation xml export file urls? and change them to what if you don’t have a live website?
- How to get URL of category of a custom post?
- How to add custom theme in hosting server?
- Is there a plugin for versioning files in the theme (style , .js and .php files)?
- get_avatar() is not working in my custom theme
- Getting post URL within custom content template
- WordPress Custom Theme : Theme Builder vs ACF vs Gutenberg
- Getting unexpected warnings from theme options code
- Block validation failed for `core/pullquote` after adding theme support for editor-color-palette
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- Different templates for each category level
- How to show children pages as array
- wp_nav_menu custom walker class
- Using Customizer value in an external PHP file inside a theme
- Changes to template not showing up unless ?reset=1 added to URL
- How to add drop symbol to parent nav items which have child
- Enqueue Stylesheets After Theme’s “rtl.css”
- WordPress 3.5 + Foundation 5 not working on IE9
- How do I keep images in posts below a certain size without editing the post?
- Using wp_enqueue_script with social media buttons?
- Want to include ad code after related post
- Is it possible to customize the layout of Gallery Shortcode?
- How can i use archive.php for indexing wordpress default posts?
- How can disable function wp_link_dialog()
- How can I add a single image from a gallery into the page header?
- How to create full header but keep content narrow
- What is the point of using archive.php instead of index.php?