Adding page class to body

Ecommerce design Joomla template to start your online business with VirtueMart and additional eshop features.
GK User
Mon Jun 17, 2013 11:11 pm
Hello,

I want to have different backgrounds for certain pages. These pages are linked to menu items and so I have added a specific page class to them. However the page class only is added as a class way down in the DOM and not in the body tag. Can you please tip me as to how I can add the page class to the body tag in the youshop template? I know how to fetch the pageclass parameter but if I add this to the body tag in the layouts/default.php file nothing happens. Thanks for your tip in advance.
User avatar
Fresh Boarder

GK User
Mon Jun 17, 2013 11:15 pm
There is a build in theme functionality for that. Checkout this documentation:
http://www.gavick.com/documentation/joo ... -features/
"Suffix for pages" section.
If You know page/subpage ID (You can get it from menu editor) - then You can add any class to body for that page/subpage.
User avatar
Moderator

GK User
Tue Jun 18, 2013 2:16 pm
Hi Cyberek,

Thank you very much. This is very cool.
User avatar
Fresh Boarder


cron