Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2007
    Posts
    125
    Plugin Contributions
    0

    Default Logo / header change not working

    I've carefully read all the tutorials on overrides, and wanted, of course, to change the logo in the main header. I had it working, then I tried to change it to use a different logo image, but the change isn't working. Here's the issue:

    I'd like to use a very large logo, 982 x 82 pixels, which contains the text we want to display as our store title. I'd like this centered, and I'd like NOT to have the HEADER_SALES_TEXT variable show.

    Our custom header.php contains this code:

    // added defines for header alt and text
    // modified to use LifeRing store logo.jpg
    define('HEADER_ALT_TEXT', 'The LifeRing Online Store');
    define('HEADER_SALES_TEXT', 'The LifeRing Online Store');
    define('HEADER_LOGO_WIDTH', '982px');
    define('HEADER_LOGO_HEIGHT', '82px');
    define('HEADER_LOGO_IMAGE', 'store_logo.jpg');

    Since I don't want HEADER_SALES_TEXT I removed the line; but then ZC displays "HEADER_SALES_TEXT"; not a good option. How do I make it go away?

    As instructed in "How do I change "Powered by Zen Cart" and add/position a new logo?", I placed the store_logo.jpg in the /ZenCart/includes/templates/LifeRing/images directory; but the site isn't finding it. Also, we formerly had much bolder text for "The LifeRing Online Store" - what did I do wrong there?

    You can check the site at http://67.199.28.10/ZenCart/ and see (we're building a replacement for a currently working eCommerce site and are working from the IP address until we're ready to swing the DNS).

    Possible issue: we want the site fixed width, and I've changed the mailWrapper to a fixed width of 900 pixels; is that a problem if the logo is 982 pixels wide?
    hedera

    Nature bats last.

  2. #2
    Join Date
    Dec 2005
    Location
    SWFL
    Posts
    469
    Plugin Contributions
    0

    Default Re: Logo / header change not working

    As for removing the text, you cannot remove the entire line or it will trigger the error. Do it like this:

    Code:
    // added defines for header alt and text
    // modified to use LifeRing store logo.jpg
    define('HEADER_ALT_TEXT', 'The LifeRing Online Store');
    define('HEADER_SALES_TEXT', '');
    
    Since I don't want HEADER_SALES_TEXT I removed the line; but then ZC displays "HEADER_SALES_TEXT"; not a good option. How do I make it go away?
    Remove everything between the ''.

    re: logo not changing -- Make sure you're refreshing your page. Sometimes you have to flush the cache. Also, make SURE you're uploading the image to the proper template image directory. Very easy to dump it in the main image folder or the wrong template image folder. Also, you might need to delete the original from your server before uploading the new one.

    And of course, make sure you have the template set in Admin to your new template.

    As far as an oversized logo, remember that there are still a LOT of people using a width of 800. You'll irritate them making them scroll sideways to the right. I would suggest using a smaller width logo, matching the background to a background in the logo so it blends but is flexible, and then using a flexible % instead of a fixed width. That way, if they have a smaller resolution, they won't have the "off the page" problem.

    I'm sure others will have other suggestions too.

    HTH,
    Lesli in SW Florida ~ writer, teacher, and dodging hurricanes!

  3. #3
    Join Date
    Dec 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Logo / header change not working

    Quote Originally Posted by madmumbler View Post
    Make sure you're refreshing your page. Sometimes you have to flush the cache. Also, make SURE you're uploading the image to the proper template image directory. Very easy to dump it in the main image folder or the wrong template image folder. Also, you might need to delete the original from your server before uploading the new one.
    HTH,

    Good morning,

    I don't mean to jump in. What would be the correct place to upload your own images?

    Hakeema

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Logo / header change not working

    includes/templates/YOUR_TEMPLATE/images/
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  5. #5
    Join Date
    Nov 2007
    Posts
    125
    Plugin Contributions
    0

    Default Re: Logo / header change not working

    Thanks for the suggestions, madmumbler - I actually realized that about removing the text between the quotes after I posted this. Dumb.

    As a matter of fact my client (who is also working on the site in parallel, don't ask) managed to get the wide logo to show - by making the page 980px wide! I have myself raised the issue of people with 800x600 displays but it didn't seem to make an impression, I'll mention it again - I myself don't really have a feel for who uses 800x600 displays but you obviously do. Since I think he created the wide logo (which really does look nice) maybe he can shrink it somehow...
    hedera

    Nature bats last.

 

 

Similar Threads

  1. Header Logo will not change
    By Tamuren in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 Jun 2011, 09:31 PM
  2. Change Header Logo Link
    By anikolov in forum General Questions
    Replies: 11
    Last Post: 10 Mar 2011, 07:01 AM
  3. Change header logo
    By gizelle in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Dec 2007, 11:49 PM
  4. Header Logo Link Change
    By sellfourless in forum Installing on a Windows Server
    Replies: 12
    Last Post: 8 Mar 2007, 07:00 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