Page 1 of 3 123 LastLast
Results 1 to 10 of 27
  1. #1
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Banner on Main Page Only

    I've searched through the forums and found alot of threads related to this, but I'm a bit new to coding still and so I need a more thorough step by step explanation, if someone would be so kind...

    www.RickRushArt.com

    As you can see, the logo banner (Banner #3, I believe) is below the breadcrumb and above the Products... this is exactly how we want it, but we only want the banner to display on this main page.

    If someone would be so kind as to provide a really definitive explanation to how to make this happen, I think it'd be helpful to a lot of people.

    Thanks,

    Brad
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    Open your tpl_main_page.php

    Copy the code for banner box #3

    Delete that code from tpl_main_page

    Paste the code you copied into tpl_index_default.php

    make sure you are using the Overrides.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Banner on Main Page Only

    Or to avoid changing code at all, just put the image into your define_main_page.php file and it will only show up on the front page.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    Open your tpl_main_page.php
    Got it.

    Copy the code for banner box #3
    Where does the code begin and end?

    Paste the code you copied into tpl_index_default.php
    Where do I paste it? Which line, I mean?

    make sure you are using the Overrides.
    What are the Overrides?
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

  5. #5
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    What are the Overrides?
    Start with this section of the FAQ's - https://www.zen-cart.com/tutorials/index.php?category=4
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  6. #6
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    Thanks for your patience with me thus far. I'm pretty sure I'm using an over-ride, as I have a custom folder where all of the module/template folders are located... Hopefully I'll be fine with the next Zen update.
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

  7. #7
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    I'd still like to know on which lines the codes begin and end, and which lines I need to paste the codes in between...
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Banner on Main Page Only

    If you want to do this by programming, then this is the block of code in tpl_main_page.php that you would move. If you're using Zen Cart 1.3.7, then you will find it at line 100.
    PHP Code:
    <?php
      
    if (SHOW_BANNERS_GROUP_SET3 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET3)) {
        if (
    $banner->RecordCount() > 0) {
    ?>
    <div id="bannerThree" class="banners"><?php echo zen_display_banner('static'$banner); ?></div>
    <?php
        
    }
      }
    ?>
    Where you insert it in tpl)index_default.php depends upon which other features of that page you might wish to use now or later and where you would wish this to sit relative to them. Assuming that you want it to be at or near the top, then I would suggest after line 17 and before line 47, taking care not to pop it in the middle of any of the block of code that inhabit this range of lines.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    Okay, I've removed the code from tpl_main_page and tried pasting it into a range of lines in the tpl_index_default, but the banner won't show up anywhere... I've made sure that I've actually got the banner turned on to begin with, and it is - so I'm sort of at a loss.
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

  10. #10
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    Perhaps paste the section of the file where you are pasting the code? (along with a few lines on either side?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Banner sidebox only on main page
    By ddespera in forum Addon Sideboxes
    Replies: 6
    Last Post: 11 Dec 2010, 09:07 PM
  2. Replies: 1
    Last Post: 17 Oct 2009, 11:50 PM
  3. Banner on Main Page only
    By cmgraham in forum Basic Configuration
    Replies: 1
    Last Post: 27 Mar 2009, 03:52 PM
  4. Banner on main page only
    By Berserker in forum Basic Configuration
    Replies: 5
    Last Post: 3 Mar 2008, 05:55 AM
  5. Footer Banner Display on Main Only?
    By clayartisan in forum Basic Configuration
    Replies: 1
    Last Post: 2 Feb 2007, 04:49 AM

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