Zen Cart Logo
Forums / Basic Configuration / Banner on Main Page only

Banner on Main Page only

Locked

Views: 2,603

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
27 Mar 2009, 2:23 PM
#1
cmgraham avatar

cmgraham

New Zenner

Join Date:
Mar 2009
Posts:
14
Plugin Contributions:
0

Banner on Main Page only

Hello,

I've tried reading the different posts on this topic but none fit exactly what I am trying to do.:(

I have added a banner on my main page that links to main page=products_all. It is on the top of the page just beneath the EZ pages header location.

I created its own group, which I named header-banner.

I only want it to show up on the main page, but currently it is on all my pages.

What do I need to add and where so that it only shows on my main page?

27 Mar 2009, 2:52 PM
#2
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Banner on Main Page only

Put the banner code in this if

if($this_is_home_page){
// code to print out that banner goes here.
}