Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    74
    Plugin Contributions
    0

    Default Center that LOGO!!!

    Hello all,
    I have been reading posts so long, I'm almost blind. I need to center my logo.

    I followed the instructions below...

    Using an image editor, create your new logo and save it to includes/templates/CUSTOM/images/your_image_name.??? and upload it to your server.

    After creating your logo you can adjust the height, width and logo name in includes/languages/ENGLISH/header.php

    define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce');
    define('HEADER_LOGO_WIDTH', '192px');
    define('HEADER_LOGO_HEIGHT', '64px');
    define('HEADER_LOGO_IMAGE', 'logo.gif');

    Did all that good stuff. Uploaded the header.php file to includes/langauges/english/custom/header.php

    Also, I've seen in some posts, directions telling me to edit my stylesheet.css file on the line that contains:

    #logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
    float: left;
    }

    I can't find #logo in any file whatsoever. I even saw a post that said to "add"

    #logo {
    width: 100%;
    text-align: center;
    }

    to the bottom of my stylesheet.css.

    I'm having no luck! Any help would be great. Thanks!

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

    Default Re: Center that LOGO!!!

    What template are you using?
    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
    Oct 2006
    Posts
    74
    Plugin Contributions
    0

    Default Re: Center that LOGO!!!

    I am using the Standard ZenCart with a override of "custom"

  4. #4
    Join Date
    Oct 2006
    Posts
    74
    Plugin Contributions
    0

    Default Re: Center that LOGO!!!

    I've been reading more posts... I didn't answer your question correctly did I? I am using the "Classic" template. I followed a forum post by "NetworkDad" on configuring my overrides. I believe I used the Classic Template.

  5. #5
    Join Date
    Aug 2006
    Location
    Canada
    Posts
    1,031
    Plugin Contributions
    5

    Default Re: Center that LOGO!!!

    What version of cart? PM me your URL if you don't want to post it.

  6. #6
    Join Date
    Mar 2005
    Posts
    100
    Plugin Contributions
    0

    Default Re: Center that LOGO!!!

    hi,

    i just spent half the day doing this and now i find this....works great.

    Now my next logical step is to work out how to blend the logo over my background colour as it is a variable size page.

    what i mean is i have a logo with different colours at either end. So i can't just use one end as the fill for the background.

    I wonder how to split the background into 2 images, with one fill at either end please?

    does anyone know how to do this please?....or if there is a better way perhaps?

    Cheers!

    Tim

  7. #7
    Join Date
    May 2005
    Posts
    8
    Plugin Contributions
    0

    Default Re: Center that LOGO!!!

    Quote Originally Posted by JGraphics View Post

    I'm having no luck! Any help would be great. Thanks!
    I just discovered the answer to this while setting up my latest store. But, it's not for the newest version, mine's v. 1.2.4.1, which I think was a couple of versions ago... (I'd have to upgrade my server to run the newest version, but doing that would make me have to upgrade my other store's cart, and it's not the off-season yet, so I'm waiting.)

    The Evil Code for my version was hiding, laughing at me from:

    includes\templates\template_default\common\tpl_header.php

    Find the line where it says,

    Code:
    <td valign="middle" height="<?php echo HEADER_LOGO_HEIGHT; ?>" width="<?php echo HEADER_LOGO_WIDTH; ?>">
    KILL that HEADER_LOGO_WIDTH php code, and if you've got nothing in the next cell over, the logo should center right up!

    Oh, and if you want a bit of a border below your logo, kill the php statement for the logo height and hardcode it to be a few px bigger than your logo is.

    BTW the suggestion to add "center" to that line works, but only in FireFox. IE will obey the width designation over the "center" command.

    Hope this is all clear since I just got done doing this, so I'm still a bit irritated!!

 

 

Similar Threads

  1. Stumped trying to center the logo
    By Chrome Orange in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 19 May 2009, 04:08 PM
  2. Why won't my header logo center?
    By wowzah in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 Jul 2006, 07:47 PM

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
  •