Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2008
    Posts
    7
    Plugin Contributions
    0

    Default Don't want a header logo...

    My header image includes a logo, etc. Since I don't want another logo up there, do I just remove this from the header? Or is there somethign else I should be doing?


    includes/languages/ENGLISH/header.php

    define('HEADER_LOGO_WIDTH', '192px');
    define('HEADER_LOGO_HEIGHT', '64px');
    define('HEADER_LOGO_IMAGE', 'logo.gif');

  2. #2
    Join Date
    Apr 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Don't want a header logo...


  3. #3
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Don't want a header logo...

    includes/languages/ENGLISH/header.php

    define('HEADER_LOGO_WIDTH', '192px');
    define('HEADER_LOGO_HEIGHT', '64px');
    define('HEADER_LOGO_IMAGE', 'logo.gif');

    Firstly, you should be working in your CUSTOM TEMPLATE system to ensure that the OVER_RIDES protocols are effective. If the header.php file does not exist in the path below, then COPY header.php into the appropriate directory...


    includes/languages/YOUR_TEMPLATE/english/header.php

    define('HEADER_LOGO_WIDTH', '192px');
    define('HEADER_LOGO_HEIGHT', '64px');
    define('HEADER_LOGO_IMAGE', 'logo.gif');

    Now, you can delete the 'logo.gif' reference, so you have:-

    define('HEADER_LOGO_IMAGE', '');

    Make sure the two SINGLE QUOTES remain.


    Next, you are going to have to edit:-

    includes/templates/YOUR_TEMPLATE/common/tpl_header.php

    Again... if tpl_header.php does not exist in this path, then you must create the path (by creating appropriate folders if necessary) and put a COPY of tpl_header.php into the appropriate folder.

    Once you have a COPY of tpl_header.php in the right place, open it to EDIT.

    Find the section shown below...

    PHP Code:
    <!--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_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT) . '</a>'?></div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET2))) { ?>
        <div id="taglineWrapper">
    <?php
                  
    if (HEADER_SALES_TEXT != '') {
    ?>
          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
                  
    }
    ?>
    <?php
                  
    if (SHOW_BANNERS_GROUP_SET2 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET2)) {
                    if (
    $banner->RecordCount() > 0) {
    ?>
          <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static'$banner);?></div>
    <?php
                    
    }
                  }
    ?>
        </div>
    <?php // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
    <br class="clearBoth" />
    <!--eof-branding display-->
    COMMENT OUT THE LINE:-

    <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>'; ?></div>

    <!-- <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>'; ?></div> -->

    Save the file.

  4. #4
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Don't want a header logo...

    ... another way to do this is to leave all the original code intact, and create a TRANSPARENT gif measuring 192 x 64 px, and calling it logo.gif and saving it to the appropriate template's images folder...

  5. #5
    Join Date
    Apr 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Don't want a header logo...

    I must be dense. I don't understand what this means....

    Firstly, you should be working in your CUSTOM TEMPLATE system to ensure ....

    Do I create a folder called CUSTOM in every folder that I make a change in? OR do I do something else.

    --------------

    If I were to create a transparent gif wouldn't that take the place of the header I put on the site myself?

    I'm not sure what I did on the site, but I somehow got rid of it :) I think by putting '' in stead of the file. But will look to follow the directions so that there aren't problems later. ;)

    ------------

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

    Default Re: Don't want a header logo...

    Basically, you create a folder everywhere you see a Classic folder and place any files you modify in there. They can be named anything you want (not just CUSTOM) but they have to be all the same for any given template. When you select a particular template in Admin - Tools - Template Selection, Zencart will check that template's folders first. You can have as many templates as you want, too.

    Here's a link to the FAQ on templates:


    https://www.zen-cart.com/tutorials/i...hp?article=142


    I don't understand the transparent gif thing either, but the other way should work OK.

  7. #7
    Join Date
    Apr 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Don't want a header logo...

    Thank you. All done! ---well at least with this part :)

  8. #8
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Don't want a header logo...

    Quote Originally Posted by stevesh View Post
    I don't understand the transparent gif thing either, but the other way should work OK.
    If you leave the <div> in tpl_header.php, but remove the "logo.gif" from the DEFINE in english/header

    ... you will see a browser image place-holder where logo.gif ought to appear.

    This is because the html is referring to an image... but the image isn't being referenced or called.

    A transparent gif is just that... transparent. It will render in the browser, but will be see-thru... therefore enabling the background image to be seen un-impaired.

    see it in action... www.embroiderella.co.uk/oldshop (hover over the place where you would normally see the "zencart" logo at the brown arch... there's a gif there, and it's solid black! - but the black has been made transparent, so you see right through it!

    Neat huh

 

 

Similar Threads

  1. v139h header logo get cut if I don't have currencies
    By glitzsfa in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 Jan 2012, 03:07 AM
  2. Don't want back orders, using Stock by Attribute mod and want to show inventory
    By teazerr in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 28 Apr 2011, 03:15 AM
  3. I don't want to install a template, I just want my own header navigation bar...
    By xtina in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Aug 2009, 09:22 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