![]() |
How can I detect what template the user is viewing?
I have added a custom template which works great.
But for this specific template I don't want the ad_navbar_below to be included. If I could put some kind of conditional in the navbar template that says something to the effect of: Code:
if current_template != sponsors.php then That would be perfect for me. Anyone know how I can code this to work? I am new to this so be gentle. Thanks :p Eric |
You can base your condition off of THIS_SCRIPT if that is defined at the top of your page:
HTML Code:
<if condition="THIS_SCRIPT == 'sponsors'"> |
That did it perfectly. Thanks Lynne!
|
All times are GMT. The time now is 01:32 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|