My homepage will require that the "features" section and "content" section to be a different color from the internal pages . I used CSS to change the features area as an example but it works globally. Would it make sense to have a special "features" and "content" section for the homepage so I can apply different CSS? And if so, I do I create these new sections?
How do I create a new Content Section for a Template?
Started by
chrisdhanaraj
, Oct 17 2012 02:34 PM
templates section
6 replies to this topic
#1
Posted 17 October 2012 - 02:34 PM
#2
Posted 17 October 2012 - 02:38 PM
You can use css to target just the homepage, every page in wordpress has unique 'body' classes.
View the source of your page in the browser and look for the <body> tag and note the classes.
View the source of your page in the browser and look for the <body> tag and note the classes.
#3
Posted 17 October 2012 - 02:50 PM
Sounds logical.
here's what I have
body.home.page.page-id-2 section#features.container.no_clone.section-features.fix div.texture {
background-color: #f7f7f7;
}
That doesn't work but it's probably not right. Do I need to add a more complete path to the the div?
here's what I have
body.home.page.page-id-2 section#features.container.no_clone.section-features.fix div.texture {
background-color: #f7f7f7;
}
That doesn't work but it's probably not right. Do I need to add a more complete path to the the div?
#4
Posted 17 October 2012 - 02:53 PM
Well im no good at CSS
but if you post a link to your site and exactly what you need, someone with some skills will be along.
#5
Posted 17 October 2012 - 03:07 PM
I got it to work! Putting a page id for every page is quite brilliant 
Thanks for your help.!
Thanks for your help.!
#6
Posted 17 October 2012 - 03:08 PM
Your welcome
#7
Posted 17 October 2012 - 03:08 PM
The topic was marked as resolved.
Also tagged with one or more of these keywords: Resolved, templates, section
Pagelines PostPins Section randomly deleted?Started by brightonkeller , 12 May 2013 |
|
|
||
Section vanished - Help!Started by glynt , 08 May 2013 |
|
|
||
SideBar Areas not Customizing in Drag & Drop TemplatesStarted by novare , 25 Apr 2013 |
|
|
||
PageLines Framework →
Customizations →
section inside a sectionStarted by swoda , 18 Apr 2013 |
|
|
||
Section updatesStarted by suerama , 18 Apr 2013 |
|
|











