By jkobylt on
Hello everyone,
What does <body class="<?php print $body_classes; ?>"> do?
Does the above PHP command call the CSS files from the "system" folder?
Thanks for your help!
Jerry K
http://www.jerrykobylt.com
Hello everyone,
What does <body class="<?php print $body_classes; ?>"> do?
Does the above PHP command call the CSS files from the "system" folder?
Thanks for your help!
Jerry K
http://www.jerrykobylt.com
Comments
If the proper code is placed
If the proper code is placed in the phptemplate template.php file then the code will print out "class names" as the command print $body_classes; implies....
The reason this is done is so that if say you want to include certain css code on a page that has a sidebar you can add code in the template.php file to say IF THIS PAGE USES THE SIDEBAR THEN ADD "sidebar[-left/-right]" to the body_classes variable. Then it is printed in the HTML and the browser applies the specific css rules.
Thank you very much for your explanation
I understand now what that specific PHP command does now. Thanks for your help. I will look into it further to find out how I can take full advantage of that feature.
Thanks!
Jerry Kobylt
http://www.jerrykobylt.com