Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Posts
    87
    Plugin Contributions
    0

    Re: Logo problems - please help

    ok, thanks for that. have just read up on the template issues and think i can sort that with no problems.

    With regards to the size, what size is ideal for a logo? and do i set this size in the index.php or in my image editor?

    Many thanks for your help!

  2. #2
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: Logo problems - please help

    Make sure to use Override!
    Please refer to other related topics about Override.

    The original file is in the:
    includes/languages/english/header.php

    Then copy the above file and save to your override dirctory:
    includes/languages/english/YOUR_TEMPLATE/header.php

    If you had modified the above file before, then you should use compare and match methods.


    And modify the following lines to match your needs.

    PHP Code:
    // added defines for header alt and text
      
    define('HEADER_ALT_TEXT''Powered by Zen Cart :: The Art of E-Commerce');
      
    define('HEADER_SALES_TEXT''TagLine Here');
      
    define('HEADER_LOGO_WIDTH''192px');   // adjust this for your logo width
      
    define('HEADER_LOGO_HEIGHT''64px');    // adjust this for your logo height   
      
    define('HEADER_LOGO_IMAGE''logo.gif');  // this is your logo file name 
    Last edited by seethrou; 13 Jul 2006 at 09:50 AM. Reason: Added further info. for caution!
    A New Starter again

  3. #3
    Join Date
    Jul 2006
    Posts
    87
    Plugin Contributions
    0

    Re: Logo problems - please help

    Thank you for your reply,

    Ive setup a new template and still have the same problem with that as i did with the classic template ie, when i change the logo width/height in the header.php file the file does not change size and is still no small. regardless of what sizes i make it it stays constant.

    Any further ideas? Much appreciated

  4. #4
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: Logo problems - please help

    Quote Originally Posted by ryangsoton
    Ive setup a new template
    Do you have the template updated for your site?
    It is still in the form of classic template.

    Quote Originally Posted by ryangsoton
    and still have the same problem with that as i did with the classic template
    from the current site of the link you provided above.
    The page width is 750px and its set in the stylesheet.

    But now you have a logo.png with the a width of 760px and a height of 110px.

    By view source of your page.
    HTML Code:
    <table width='100%' cellspacing='0' cellpadding='0' border='0' class='header'>
    
    <tbody>
    <tr>
    <!-- All HEADER_ definitions in the columns below are defined in includes/languages/english.php //-->
    
    <td width='192' valign='middle' height='64'>
    <a href='http://www.climax-creation.com/zen-cart-v1.3.0.2-full-fileset/index.php?main_page=index'>
    <img width='760' height='110' title=' Powered by Zen Cart :: The Art of E-Commerce [home link] ' alt='Powered by Zen Cart :: The Art of E-Commerce [home link]' src='includes/templates/classic/images/logo.png' />
    </a>
    
    </td>
    
    <td valign='top' align='center'>
    <h1>
    </h1>
    
    </td>
    
    </tr>
    
    </tbody>
    </table>
    From above code you have another setting of the img width='760' height='110'.
    It is too wide for your page width with 750px which set in the stylesheet.

    You can either set your page width to 760px or reduce your true image size to width less than 750px.

    And don't forget to modify the file of header.php
    in the line
    define('HEADER_SALES_TEXT', '<h1></h1>');

    Remove the <h1></h1> and then read as below:
    define('HEADER_SALES_TEXT', '');

    Otherwise, you will have a blank white space of about 10px - 12 px at the right margin of the logo and can't get rid of it.

    Quote Originally Posted by ryangsoton
    ie, when i change the logo width/height in the header.php file the file does not change size and is still no small. regardless of what sizes i make it it stays constant.
    The setting in the header.php file will not modify the size of the image, instead it helps to adjust the positions of the centering.

    .
    A New Starter again

  5. #5
    Join Date
    Jul 2006
    Posts
    87
    Plugin Contributions
    0

    Idea or Suggestion Re: Logo problems - please help

    Got it! Thank you so much. Taking out that h1 h1 sorted it. Have now opened a new thread about the stylesheet - feeling a bit dumb!

 

 

Similar Threads

  1. how do i change logo to my logo please help
    By zeus in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Aug 2009, 01:27 AM
  2. Please some logo help
    By alillowr in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Jun 2009, 03:19 PM
  3. Please help no Header logo
    By autot in forum Templates, Stylesheets, Page Layout
    Replies: 21
    Last Post: 2 Feb 2009, 10:50 AM
  4. Image map in the logo, problems any help?!
    By marcelosurf in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Mar 2008, 08:35 AM
  5. Logo cutomization - Please help???
    By waghelak in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Jul 2006, 11:16 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