Forums / General Questions / Display certain text in header only for homepage

Display certain text in header only for homepage

Views: 597

Results 1 to 2 of 2
15 Jan 2013, 9:21 PM
#1
tips007 avatar

tips007

New Zenner

Join Date:
Oct 2012
Posts:
52
Plugin Contributions:
0

Display certain text in header only for homepage

i use if ($this_is_home_page) for tpl_main_page.php, it works
but when i try using it in tpl_header.php, it doesn't work
is there any way to display certain text in header only for homepage?

15 Jan 2013, 9:51 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Display certain text in header only for homepage

Well, since tpl_main_page.php calls tpl_header.php, you must have an error in your code.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.