Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2011
    Posts
    23
    Plugin Contributions
    0

    Default Logo and header_bg images being re-sized

    Sorry if the answer to this is here somewhere already but I just can't get this to work properly (and I think I've read just about every related topic about logos here on the forum and on the wiki):

    Using the default theme I replaced logo.gif with a new image 400x72 pixels and header_bg.jpg 760x110 i.e. new logo is bigger but background image is same size as original.

    In includes/languages/english/custom/header.php I have:

    Code:
      define('HEADER_LOGO_WIDTH', '400px');
      define('HEADER_LOGO_HEIGHT', '72px');
      define('HEADER_LOGO_IMAGE', 'logo.gif');
    in /includes/templates/custom/common/tpl_header.php:

    Code:
    <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>
    and in /includes/templates/custom/css/stylesheet.css

    Code:
    #logoWrapper{
    	background-image: url(../images/header_bg.jpg); 
    	background-repeat: repeat-x;
    	background-color: #ffffff;
    	height:110px;
    	}
    I can see that tpl_header.php in my /custom template directory is controlling output by putting some dummy text before the anchor).

    The problem is that both images are being 'stretched'. If I right-click either image and view it in a new tab it appears at the correct size.

    I'm Using 1.3.9h.

    Help with this would be much appreciated

    TIA

    Paul

  2. #2
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Logo and header_bg images being re-sized

    url to your site?

    The Logo image size should ONLY be defined in: includes/languages/english/custom/header.php, while the Header background image size should be controlled from: includes/templates/custom/css/stylesheet.css, being sure to define not only the height, but also the width.

    Upon seeing your site, we can actually SEE what the problem may be, and will be able to help MUCH better.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  3. #3
    Join Date
    Nov 2011
    Posts
    23
    Plugin Contributions
    0

    Default Re: Logo and header_bg images being re-sized

    http://www.postcadia.co.uk - down for maintenance but you can see the problem - right click and view images to see actual size (excuse the primitive placeholder graphics/colours!)

    Thanks

    Paul

  4. #4
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Logo and header_bg images being re-sized

    They are showing the correct size for me. What browser are you using?

  5. #5
    Join Date
    Nov 2011
    Posts
    23
    Plugin Contributions
    0

    Default Re: Logo and header_bg images being re-sized

    Firefox 8.0...tried IE and they do show correct size....eeek...just realised that problem is due to zoom setting in FF!

    Thanks for the help.

    Paul

  6. #6
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Logo and header_bg images being re-sized

    Yep. After looking at your site..........they're showing correctly for me, as well. Have you tried clearing your cache, then viewing?
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  7. #7
    Join Date
    Nov 2011
    Posts
    23
    Plugin Contributions
    0

    Default Re: Logo and header_bg images being re-sized

    Quote Originally Posted by Get Em Fast View Post
    Yep. After looking at your site..........they're showing correctly for me, as well. Have you tried clearing your cache, then viewing?
    See above - it was just that I'd zoomed in at some point and not reset the view. How embarrasing!

  8. #8
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Logo and header_bg images being re-sized

    Quote Originally Posted by PaulR View Post
    See above - it was just that I'd zoomed in at some point and not reset the view. How embarrasing!
    Ahhhhh.............I see. Looking at the timestamps, looks like we posted just about the same time. :)

    Glad to see it's resolved.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

 

 

Similar Threads

  1. Making a Header/Logo that grows with various sized browser boxes
    By petro in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Aug 2013, 04:18 PM
  2. Medium sized images not showing up
    By wotnow in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 12 Feb 2010, 12:40 AM
  3. Using original sized images?
    By g_force in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Jun 2009, 07:50 AM
  4. Medium Sized Images
    By amplexus in forum General Questions
    Replies: 5
    Last Post: 24 Jun 2008, 08:39 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