Adding class or tag to #bodyrow
Following comments in this post about the unruliness of my CSS inserts :o, I've been tidying things up a bit (work in progress still).
Quite a lot of coding goes into creating different colour schemes for different pages, using Page-ID selectors. This gets confusing as more pages are added. E.g. Code:
.page-id-30 div.widget-title h3, Code:
.yellow div.widget-title h3 { border-top-color: yellow; } In the wordpress page editor is an options box [Page Attributes > Parent & Template], where the multicolumn option is. Ideally I'd have something similar, which allowed me to mark each page/post as either a Yellow or Blue page, which then added a suitable selector to the html. Has anyone found a plug-in which might do this (or could be tricked into doing this)? |
did you try a google search with 'wordpress plugin add class to page'?
Try https://wordpress.org/plugins/wp-custom-body-class/ |
2 Attachment(s)
Epic! Thanks. This is so simple it could almost be included in Wordpress.
For those who might be interested, the Custom Body Class plugin allows you to add an additional .class selector to the <body> via a small box in the page/post editor screen. In this case, I used it to group different pages. So it changes what was this: Code:
.page-id-8 #bodyrow, Code:
.sand #bodyrow { |
All times are GMT -6. The time now is 01:30 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.