Jump to content


Photo
- - - - -

adding class to section


Best Answer mutonline , 23 April 2013 - 03:27 PM

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.

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 mutonline

mutonline

    Member

  • Members
  • 10 posts
  • Framework Version:Developer Edition

Posted 23 April 2013 - 12:31 PM

Hi,

 

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

 

Thanks in advance.

Daniel

 



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 15163 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 23 April 2013 - 12:57 PM

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.

 

Please Login or Register to see this Hidden Content

 

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



#3 mutonline

mutonline

    Member

  • Members
  • 10 posts
  • Framework Version:Developer Edition

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.