Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / Only Show on Home Page...

Only Show on Home Page...

Locked

Started by sigol on 5 Jun 2008, 8:53 PM · Views: 1,385

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
5 Jun 2008, 8:53 PM
#1
sigol avatar

sigol

New Zenner

Join Date:
Aug 2007
Posts:
16
Plugin Contributions:
0

Only Show on Home Page...

Hi,

I'm relatively new to ZenCart and PHP so please don't flame me. I'm sure this is the easiest thing to answer in the whole world, but here goes!

I've inserted an extra <div> in to my custom tpl_header.php file. Everything's cool. All I want to do is wrap the <div> with a <?php> if statement that only shows the <div> when I'm on the home page.

I want this extra div to disappear in every other page.

Can you please tell me what php if statement I need to test whether I'm on the home page.

Told you it was easy!!!!

Best wishes,

Sigol.

5 Jun 2008, 9:47 PM
#3
sigol avatar

sigol

New Zenner

Join Date:
Aug 2007
Posts:
16
Plugin Contributions:
0

Re: Only Show on Home Page...

ha ha, that looks difficult :blush:

thanks for that, gjh42 !

"you don't know what you don't know!"