adding class to section
Posted 23 April 2013 - 12:31 PM
how can I add a class to a section? e.g. <section id="highlight" class="container my.class">
Thanks in advance.
Posted 23 April 2013 - 12:57 PM
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.
Once you have the sections folder in your child themes sections folder, you can customise the section.php file, which will override the original.
Posted 23 April 2013 - 03:27 PM Best Answer
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.