By hawkeye217 on
I'm looking for a way to add a css class to my pages using the standard $vars[] method when the page is generated by a taxonomy/term path as opposed to by a view or anything else (like a standard page object). Is there a way I can determine this with php I can insert in my template.php file?
For example, I am looking to add:
...
when the page is generated by taxonomy/term and
...
otherwise.
Thanks in advance!
Comments
forgot the code blocks...
This should have said:
when the page is generated by taxonomy/term and
otherwise.
1. Use the arg function to
1. Use the arg function to check the path
2. Modify your page template (page.tpl.php) to add the body class variable
Works great. Would it
Works great.
Would it apply in the same manner for url aliases?
I'm hunting around for some docs on the arg function...