Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 96044

idmtn on "Custom body class for colour scheme"

$
0
0

Hi everyone

I have customised the twenty twelve theme to match the website I have designed.

The website has 3 sections, and its own colour style. ie the title colour is different for each section.

Whats the best way to do this? Should I duplicate the template with its own CSS file, so there are three templates (template green, template red and template blue)

Or is there a way where when you create a new page, under Page Attributes where you can select the Page Template; maybe have a drop down selecting the colour scheme and this updates the body tag with the colour class? <body class="red"> Having an option to select the css file or adding the colour the body tag - is this possible?

I have 3 different page templates so I don't duplicate each of those 3 template for the colour style... if that makes sense?!

Hope someone can guide me the the right way to do this!

Many thanks


Viewing all articles
Browse latest Browse all 96044

Trending Articles