Changing heading depending on what template include it
-
I need to know how to change my header depending on what template it’s being called in. I know how to do this for a page template I can just use is_page_template(‘template.php’) but I am trying to do this for a template from the image.php template. Is there a function I can put in my header.php that will tell me where its being included or will i just have to create another header template and call that from my image.php template?
- The topic ‘Changing heading depending on what template include it’ is closed to new replies.