Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2008
    Location
    Devon
    Posts
    5
    Plugin Contributions
    0

    Default Logo size cannot be changed

    In order to improve the appearance of my site www.QuiteQuirky.co.uk on mobile devices I have scaled everything that I can to be 100% of the screen width. This has worked for everything with the exception of the logo. I have changed every reference to the width to set it to 100%
    eg header.php

    // added defines for header alt and text
    define('HEADER_ALT_TEXT', 'Personalised Memory boxes, Keepsake Boxes, treasure chests and unique special occasion gifts');
    define('HEADER_SALES_TEXT', '');
    define('HEADER_LOGO_WIDTH', '100%');
    //define('HEADER_LOGO_HEIGHT', '50px'); GJ39

    define('HEADER_LOGO_IMAGE', 'logo.gif');

    I know this is the right one as changing the name of the logo affects the logo, but the width makes no difference - the logo always appears "real size"

    I have been through all the posts trying to address this problem, but cannot find anything that works.

    I am using the Classic Contemporary Green template on v1.5.0. Does anyone have any idea what else is affecting this?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Logo size cannot be changed

    Far as I know, you can't specify a percentage width in that define. The image will always be whatever width it is. Even if what you want to do were possible, the image would be stretched to fit and probably wouldn't look all that good.

  3. #3
    Join Date
    Sep 2008
    Location
    Devon
    Posts
    5
    Plugin Contributions
    0

    Default Re: Logo size cannot be changed

    thanks Steve - that is a real shame as everything else scales nicely. I can remove the logo, but then I need somewhere else for that info. If I keep the logo the size that it is then it works nicely on a iPhone, but doesn't work so well on the computer!

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Logo size cannot be changed

    I haven't worked with mobile-friendly templates, but there are a few around. It may be that the code serves a different image if a mobile device is detected. Making a template that looks good on PC screens and mobiole devices without user device detection doesn't seem possible to me.

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Logo size cannot be changed

    Quote Originally Posted by stevesh View Post
    Making a template that looks good on PC screens and mobiole devices without user device detection doesn't seem possible to me.
    It's possible.

    On THIS SITE, change the width of your browser - make it VERY NARROW by "dragging" the browser frame to the left. Then WIDEN it again. Notice what happens to the images, menus, text....

    It will "adjust" according to the resolution of the device's screen and aspect ratio.
    Last edited by schoolboy; 14 Mar 2013 at 09:29 PM.
    20 years a Zencart User

 

 

Similar Threads

  1. v154 logo on invoice does not show after I changed to my logo in admin directory
    By RonGin in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 21 Jan 2016, 01:38 AM
  2. v139h Oops! Changed Logo Size And Made A Mess
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Jan 2013, 10:57 PM
  3. Changed default template and cannot get logo to center
    By pityocamptes in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Feb 2010, 03:36 PM
  4. Logo cannot be changed
    By yvonne8 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Jun 2008, 08:48 AM
  5. Help! changed logo, cocked up!
    By jonb in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 5 Aug 2007, 09:53 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