Thread: centering logo

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Dec 2006
    Posts
    42
    Plugin Contributions
    0

    Default centering logo

    I know this is in the tutorials/FAQs but even after following those directions I can't get it right.

    www.heavenlycreationsoklahoma.com

    I want the heavenly creations logo centered left to right here is what i have entered on my style sheet

    .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
    float: left;
    }
    #logo {text-align: center;}

    i think this is correct but its obviously not working so could someone point me in the right direction?

    Thank you!!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: centering logo

    Well the code is more particular and is not reading your mind!!!

    You have this defined and attached as a background image header_bg.jpg to the logo wrapper and you are calling #logo to be centered and this does not exist.
    Code:
    #logoWrapper{
    	background-image: url(../images/header_bg.JPG);
    So a couple of changes....remove the logoWrapper entries for this image including the repeat etc.

    Now to make this easy if you have a graphics app that can create a gif - convert your image into a gif as logo.gif and upload this to your template/images folder.

    If not rename the jpg to logo.jpg and edit a copy of /includes/languages/english/header.php and find this and change the red text(this is case sensitive and needs to match your image name)
    Code:
    define('HEADER_LOGO_IMAGE', 'logo.jpg');
    Zen-Venom Get Bitten

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

    Default Re: centering logo

    The css is correct. The logo is defined as includes/templates/YOUR_TEMPLATE/images/header_bg.JPG. Is that what you have defined in includes/languages/english/YOUR_TEMPLATE/header.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');
      define('HEADER_LOGO_HEIGHT', '64px');
      define('HEADER_LOGO_IMAGE', 'logo.gif');
    That image is pretty big at 512 wide. If you want to center it, cut out any unnecessary space or reduce the size of the text.
    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

  4. #4
    Join Date
    Dec 2006
    Posts
    42
    Plugin Contributions
    0

    Default Re: centering logo

    Quote Originally Posted by kobra View Post
    Well the code is more particular and is not reading your mind!!!

    You have this defined and attached as a background image header_bg.jpg to the logo wrapper and you are calling #logo to be centered and this does not exist.
    Code:
    #logoWrapper{
        background-image: url(../images/header_bg.JPG);
    So a couple of changes....remove the logoWrapper entries for this image including the repeat etc.

    Now to make this easy if you have a graphics app that can create a gif - convert your image into a gif as logo.gif and upload this to your template/images folder.

    If not rename the jpg to logo.jpg and edit a copy of /includes/languages/english/header.php and find this and change the red text(this is case sensitive and needs to match your image name)
    Code:
    define('HEADER_LOGO_IMAGE', 'logo.jpg');
    When I attempted to do this, my logo image disappeared completely.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: centering logo

    When I attempted to do this, my logo image disappeared completely.
    What did you end up doing exactly??? as I offered more than one solution for the logo.xxx image
    Zen-Venom Get Bitten

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

    Default Re: centering logo

    Your logo is still identified as includes/templates/YOUR_TEMPLATE/images/header_bg.JPG and is not being treated as the background for the logo, not the logo.
    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

  7. #7
    Join Date
    Dec 2006
    Posts
    42
    Plugin Contributions
    0

    Default Re: centering logo

    Okay, I think that the logo is set as the logo and not as a background image. But, it is still not centered...I did reduce the size some but cannot reduce it much more.

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: centering logo

    Your site is still loading this as the image
    tionsoklahoma.com/catalog/includes/templates/blue_sky/images/header_bg.JPG
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Dec 2006
    Posts
    42
    Plugin Contributions
    0

    Default Re: centering logo

    Quote Originally Posted by kobra View Post
    Your site is still loading this as the image
    tionsoklahoma.com/catalog/includes/templates/blue_sky/images/header_bg.JPG
    okay, i guess i am just at a complete loss as to how to delete a 'header image' and add a logo image so could someone please direct me how or give me a link that will tell me how.
    Thank you.

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: centering logo

    Please post what tools you have??

    Your graphic editor program -
    A short list of the file names of the images that you are working with for this

    We can go from there
    Zen-Venom Get Bitten

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v150 Centering Logo
    By AkashicLounge in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Aug 2012, 01:30 AM
  2. centering logo
    By fw541c in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Sep 2011, 11:32 AM
  3. Centering Logo
    By stokeflyer in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 2 Oct 2008, 03:09 PM
  4. Help centering logo. No gap between the logo and text!
    By toxicgtr in forum General Questions
    Replies: 4
    Last Post: 7 Jan 2007, 01:24 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR