Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2005
    Posts
    110
    Plugin Contributions
    0

    Default Removing header table for center logo

    Hi,

    Ive used an older version of ZenCart before and manged to get the logo centered by editing some code to remove the right column in the header.

    Now im using the newest version (fresh install) and cant seem to find where to edit the code to center the logo by removing the right column.

    Can someone please tell me which code to change.

    my site is: www.houseofpainnutrition.com

    thanks.

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Removing header table for center logo

    Try here in the Tutorials/FAQ

    www.zen-cart.com/tutorials/index.php?article=125

  3. #3
    Join Date
    Nov 2005
    Posts
    110
    Plugin Contributions
    0

    Default Re: Removing header table for center logo

    i have tried doing what it says in the FAQ, but still doesnt work, the logo is still on the left, and the marketing text is on the right of the logo.

    there are two columns in the header table, i think its this part of the code, in the catalog\includes\templates\template_default\common\tpl_header.php


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



    would i need to edit this?





    i have found this post

    http://www.zen-cart.com/forum/showpo...93&postcount=9

    by kim on how to remove the table so logo is centered, but i cant seem to find this code to edit?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Removing header table for center logo

    Depending on the makeup (size/width) of your logo and that you actually have a logo file being loaded; You can center this, logo.gif(jpg, png), by editing your stylesheet.css (assuming that you are using Zen Cart 1.3.x) and finding this tag and adding/changing the text-align statement:
    Code:
    #logo {
        margin: 0em;
    /*    float: left; */
        text-align: center;
        padding-top: 0px;
        }
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Nov 2005
    Posts
    110
    Plugin Contributions
    0

    Default Re: Removing header table for center logo

    thanks its worked,

    now i have the logo in the center and the header text in teh center underneath the logo, now how would i remove the header text?

    thanks again

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Removing header table for center logo

    how would i remove the header text?

    Hope that you have a custom template for using the overrides?

    The simple way to do this(not the only way) is to use your stylesheet.css and edit this with the changes/additions highlighted

    Code:
    #tagline {
        color:#ffffff;
        font-size: 2em;
        text-align : center;
        vertical-align: middle;
        display: none;
        }
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Nov 2005
    Posts
    110
    Plugin Contributions
    0

    Default Re: Removing header table for center logo

    thanks i appreciate it.

 

 

Similar Threads

  1. v139h Center center logo in header
    By brush4hire in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 May 2012, 01:44 PM
  2. Center the Header Logo on V1.3.7
    By mike1969 in forum Templates, Stylesheets, Page Layout
    Replies: 23
    Last Post: 28 Jan 2011, 07:48 PM
  3. cant center logo header
    By thehiprose in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 25 Jun 2010, 03:34 PM
  4. Center the Header Logo on V1.3.7.1
    By TheWelshMan in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Aug 2007, 10:31 PM

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