Jump to content
Sign in to follow this  
mutonline

adding class to section

Recommended Posts

mutonline    0
mutonline

Hi,

 

how can I add a class to a section? e.g. <section id="highlight" class="container my.class">

 

Thanks in advance.

Daniel

 

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi Daniel,

 

The simplest way to do this, would be to create a child of that section and insert your custom class. To create a child section, follow the instructions here.

 

http://www.pagelines.com/forum/topic/25834-is-it-possible-to-have-the-quickslider-in-the-header/

 

Once you have the sections folder in your child themes sections folder, you can customise the section.php file, which will override the original.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mutonline    0
mutonline

Thank you Danny. I solved it now with with the Hooker Plugin & the Advanced Custom Post Types. Because I wanted different classes for different product groups, and now I can give every single page its own class.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×