I have a child theme where I want to add possibility to select different color schemes using the Theme Customizer. When the user select a color scheme for example “blue” I want the css file blue.css to be loaded in the child theme. All the color scheme style sheets should inherit style settings from the parent theme and from a default style sheet from the child theme.
Blue color scheme selected:
Child theme\color\blue.css loaded and imports
Child theme\style.css which imports
Green color scheme selected:
Child theme\color\green.css loaded and imports
Child theme\style.csss which imports
Anyone knows how to solve that? It would also be an ok solution to have all child theme style changes included in the different color schemes css files (so the Child theme\style.css is not needed.
- The topic ‘Select different style sheets in child theme’ is closed to new replies.