Results 1 to 10 of 20

Hybrid View

  1. #1
    Join Date
    Oct 2011
    Posts
    19
    Plugin Contributions
    0

    Default How to Create Top Banner?

    I tried really hard to find an answer to this before posting because it seems so easy, however, I can't figure this out for the life of me... I want to create a banner across the top of my site.

    I've uploaded a banner image and created its own banner group in the banner manager. I then added the banner group name to 'Banner Display Groups - Header Position 1'. This should be it right? I should then see a banner over the top of my site, or am I missing something?

    www.giftbasketsforever.com
    Version 1.3.9h

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: How to Create Top Banner

    That should place your image above the mainwrapper, if the image is in the path you specified when you created the banner. I would double-check that path first.

  3. #3
    Join Date
    Nov 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: How to Create Top Banner

    Hi

    Did it appear in the center box?

    I'm fairly new to this and someone far more qualified will be along shortly with a bit of luck. However, this is what I have done so far (a work in progress - please please back up your files!) to move the banner I created, from the the center position on in the main center box, to the top right next to / opposite my logo.

    Maybe you can play with it and figure out the rest from here I don't know, but like I say, I'm pretty new to this lark so please please back up all files.

    Here is is... I removed this from file tpl_index_default.php

    <?php
    if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
    }
    }
    ?>



    and added it to file tpl_header.php inbetween

    <!--bof-branding display-->

    and

    <!--eof-branding display-->

    Like this...

    <!--bof-branding display-->
    <div id="logoWrapper">
    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?>
    <?php
    if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
    }
    }
    ?>

    </div>
    </div>
    <div class="clearBoth"></div>

    <!--eof-branding display-->

    Hope this is helpful and my sincere apologies if it is flawed advice.

    Cheers

    Matt

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to Create Top Banner

    The stock banner group 1 code is in /includes/templates/your_template/common/tpl_main_page.php (right after the <body> tag), not in tpl_index_default.php.

    You can move it to tpl_header.php if you specifically want it not to be above the entire header div, but inside the header div.

  5. #5
    Join Date
    Oct 2011
    Posts
    19
    Plugin Contributions
    0

    Default Re: How to Create Top Banner

    Quote Originally Posted by stevesh View Post
    That should place your image above the mainwrapper, if the image is in the path you specified when you created the banner. I would double-check that path first.
    The image file is in the path. I uploaded the image into another banner that's already displaying to be absolutely sure.

    It appears that the only banners that display on my site are the two on my home page (BannerOne and BannerTwo group names). I can't get any other banner in banner manager to show up anywhere on my site.

    The weird thing is that I don't see BannerOne or BannerTwo group names anywhere on the Layout Settings page. Aren't I supposed to see the banner group next to one of the 'Banner Display Group' lines?

  6. #6
    Join Date
    Oct 2011
    Posts
    19
    Plugin Contributions
    0

    Default Re: How to Create Top Banner

    By the way I tried multiple group names on the Header Position 1 just to be sure and I can't get anything to show.

    Banner Display Groups - Header Position 1 test:bannerOne:bannerTwo

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to Create Top Banner

    Apparently there is at least one custom template that has removed banner group 1 from its top-of-the-screen position, either to put it elsewhere or delete it. Seeing your site live may help us diagnose your situation.

  8. #8
    Join Date
    Oct 2011
    Posts
    19
    Plugin Contributions
    0

    Default Re: How to Create Top Banner

    Quote Originally Posted by gjh42 View Post
    Apparently there is at least one custom template that has removed banner group 1 from its top-of-the-screen position, either to put it elsewhere or delete it. Seeing your site live may help us diagnose your situation.
    Thank you. Site is live... www.giftbasketsforever.com

 

 

Similar Threads

  1. How to remove top banner and add links to top?
    By Punkristo in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 8 Jun 2010, 07:21 PM
  2. how to align top banner left?
    By whoo_sh in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 15 Jan 2010, 04:25 AM
  3. How do I create a new Banner Group ?
    By Alex123 in forum Basic Configuration
    Replies: 10
    Last Post: 15 Jun 2008, 08:06 AM
  4. How to center banner on top?
    By b18cya in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 2 Feb 2007, 11:58 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