Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2007
    Location
    Elizabethtown, PA
    Posts
    13
    Plugin Contributions
    0

    Default Banner display only on home page

    I thought I saw this somewhere else but I can't find where.

    How do I display banners ONLY on the homepage. I can't find the conditional logic for displaying..

    Thanks!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Banner display only on home page

    You would have to use an additional condition for if you are on the home page ...

    The variable:
    $this_is_home_page

    evaluates to true if you are on the Home page ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Apr 2007
    Location
    Elizabethtown, PA
    Posts
    13
    Plugin Contributions
    0

    Default Re: Banner display only on home page

    So I would use that in a conditional statement how?

    if( $this_is_home_page){

    ??

    }

    What is the function to disable the banners? I see the:

    if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists...

    I tried to wrap it around this but no success. Excuse my ignorance...

    Thanks in advance!!

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Banner display only on home page

    Try using:
    PHP Code:
      if ($this_is_home_page && (SHOW_BANNERS_GROUP_SET1 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET1))) { 
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Apr 2007
    Location
    Elizabethtown, PA
    Posts
    13
    Plugin Contributions
    0

    Default Re: Banner display only on home page

    no dice. No errors, but it doesn't remove the banners from the products page(s)..Any other suggestions? Logically it makes sense?

  6. #6
    Join Date
    Apr 2007
    Location
    Elizabethtown, PA
    Posts
    13
    Plugin Contributions
    0

    Default Re: Banner display only on home page

    I'm an idiot. I figured it out. I was applying the recommended to the wrong banner group. Thanks!

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Banner display only on home page

    fussy little thing about code, eh? Always does what you say and never what you mean ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Nov 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: Banner display only on home page

    What file I need to add that script? to show banners in the header position 3 on home page only ?

  9. #9
    Join Date
    May 2007
    Location
    SW Florida
    Posts
    1,051
    Plugin Contributions
    2

    Default Re: Banner display only on home page

    Here's the answer to my latest question, but what file does it go in?
    JOhn ><>
    Newest Site: ChargerPros - Stuff4Toys

  10. #10
    Join Date
    May 2007
    Location
    SW Florida
    Posts
    1,051
    Plugin Contributions
    2

    Default Re: Banner display only on home page

    Newest Site: ChargerPros - Stuff4Toys

 

 

Similar Threads

  1. v138a Show Banner Display (Footer) ONLY on home page
    By genat1974 in forum General Questions
    Replies: 3
    Last Post: 10 Mar 2012, 08:25 PM
  2. v138a Show Banner Display (Footer) ONLY on home page
    By genat1974 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 9 Mar 2012, 10:55 PM
  3. Banner on Home page only
    By gearheadniko in forum General Questions
    Replies: 1
    Last Post: 27 Nov 2009, 03:30 AM
  4. Set Banner to home page only!!!
    By moejoe1976 in forum Basic Configuration
    Replies: 1
    Last Post: 15 Apr 2008, 07:49 PM
  5. Banner on Home page only
    By Cara_m in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Jun 2006, 10:24 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR