[SOLVED] How can I add an "if on homepage" condition in sub template?
Im trying to add an if statement into the header.php which is the sub template of Montezuma.
Ive tried adding at the end of header.php: Code:
<?php Ive tried adding a wp_reset_query but that didnt work. Are conditionals stripped out in virtual templates? If so, how can I add one in? Kind regards. |
only limited php is avaliable in the virtual templates - hence the 'Limited PHP Code' tab in the top right of the when looking at any of the virtual template pages
|
Yeah I noticed.
I used this in the end: Code:
<?php bfa_if_front_else( Home, Away ); ?> Edit: Any particular reason why its limited php? Seems limiting in itself! Can't do much customising. Edit2: Is it possible to have php code in that bfa_if_front_else? Seems to only accept plain text. Id like it to print the home_url. |
All times are GMT -6. The time now is 05:38 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.