Archived

This topic is now archived and is closed to further replies.

  • 0

adding class to section

Question

Posted · Report post

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

2 answers to this question

Posted · Report post

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

Posted · Report post

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.

Share this post


Link to post
Share on other sites