Results 1 to 4 of 4
  1. #1
    Join Date
    May 2008
    Posts
    48
    Plugin Contributions
    0

    Default Why change header logo width and height?

    I have successfully replaced the zen cart logo with my logo in the header by changing the following line in includes/languages/english/custom/header.php:

    define('HEADER_LOGO_IMAGE', 'mylogo.jpg'

    I wanted to modify the width and height of my logo by modifying the following two lines:

    define('HEADER_LOGO_WIDTH', '192px');
    define('HEADER_LOGO_HEIGHT', '64px');

    I didnīt work. If I change the 192px and 64px to different numbers, it has no effect on how the image is displayed.

    Am I doing something wrong? If not, what is the point of those two lines?

    Also, how can I modify the displayed dimensions of the logo if I donīt want to change the actual logo file?

    Thanks in advance for some help.
    Last edited by clueless_in_berlin; 5 Feb 2009 at 10:58 PM. Reason: addition

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

    Default Re: Why change header logo width and height?

    Are you trying to change the position of the logo?
    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
    May 2008
    Posts
    48
    Plugin Contributions
    0

    Default Re: Why change header logo width and height?

    Thank for the quick response.

    No, I am not trying to change the position of the logo. For now I am leaving it left justified.

    The problem is, if I change the following two lines in the file includes/languages/english/custom/header.php

    define('HEADER_LOGO_WIDTH', '192px');
    define('HEADER_LOGO_HEIGHT', '64px');

    to something like

    define('HEADER_LOGO_WIDTH', '10px');
    define('HEADER_LOGO_HEIGHT', '5px');

    it doesnīt seem to change the way the logo is displayed.

    Therefore I donīt understand what those two lines do. I was hoping to be able to adjust the width and height of the logo by changing those two lines.

    If I use the firebug addon in Firefox browser, I can scroll over the logo and find similar lines of code that, when changed, subsequently change the size of the logo that is displayed by the browser, independent of the actual size of the file.

    Am I making any sense?

  4. #4
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Why change header logo width and height?

    it doesnīt seem to change the way the logo is displayed.
    They won't, but they will affect the way other elements in the header are positioned in certain browsers.
    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.

 

 

Similar Threads

  1. Adjusting header height and remove logo
    By deesan in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Jun 2012, 06:29 AM
  2. Replies: 1
    Last Post: 16 Aug 2011, 08:30 AM
  3. Width of logo and buttons problem in header !
    By katiekin in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Sep 2008, 07:44 PM
  4. How to Change Mainpage Height and Width?
    By Misteryoso in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Nov 2007, 07:43 AM
  5. Changing width and height of logo.gif
    By taf in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Jun 2007, 10:07 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