Thread: Centering Logo

Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,492
    Plugin Contributions
    11

    Default Re: Centering Logo

    Rose,
    Are you using the classic template as it appears you are or, something different?

  2. #12
    Join Date
    Mar 2006
    Location
    Louisiana
    Posts
    42
    Plugin Contributions
    0

    Default Re: Centering Logo

    yes I am using the classic, I was just reading on how to make a custom but not sure about that
    Respect other in order to be respected.

  3. #13
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,492
    Plugin Contributions
    11

    Default Re: Centering Logo

    Alrighty then...

    Reload your original includes/templates/classic/common/tpl_header.php

    IF you made the CSS changes to includes/templates/classic/css/stylesheet_original.css - Keep them.

    IF NOT, make the CSS changes to includes/templates/classic/css/stylesheet_original.css

    That should take care of the image centering.

    Now , about the navigation under the logo. You'll need to give them a different class in the stylesheet in order for the text to show as it's the same color as the background.

    HTH

  4. #14
    Join Date
    Mar 2006
    Location
    Louisiana
    Posts
    42
    Plugin Contributions
    0

    Default Re: Centering Logo

    I reloaded the file as you suggested and it changed nothing, any other ideas?
    Respect other in order to be respected.

  5. #15
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,492
    Plugin Contributions
    11

    Default Re: Centering Logo

    IF you are NOT planning on using a banner in the same area of the header as the logo AND you are not going to use Sales Text, you can delete the following from the tpl_header.php file.

    <td align="center" valign="top">
    <?php
    if (HEADER_SALES_TEXT != '') {
    echo HEADER_SALES_TEXT;
    }
    if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
    if ($banner->RecordCount() > 0) {
    echo zen_display_banner('static', $banner);
    }
    }
    ?>
    </td>
    If you can see the lines in the file, that would be lines 56 thru 67.

    If you plan on using the Sales Text or Banner in the future, it's a different code.

    NOTE: This may be a good time to think about the override directories to keep such changes for the future.


    Also change the logo width in includes/languages/english to 100%
    Last edited by dbltoe; 1 Jun 2006 at 08:14 PM.

  6. #16
    Join Date
    Mar 2006
    Location
    Louisiana
    Posts
    42
    Plugin Contributions
    0

    Default Re: Centering Logo

    The only thing I want at the top is my logo, nothing else, no sale text or anything like that. can you provide the correct code i need to do that, or if the header_bg.jpg is already centered as it appears, could I just replace it with my logo and then take out whatever code that shows the logo that zen cart has there?
    Respect other in order to be respected.

  7. #17
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,492
    Plugin Contributions
    11

    Default Re: Centering Logo

    Then do the changes in my last post.

    Using header_bg.jpg is an option but it too would require coding and settings to do what you wish.

    Also, using header_bg.jpg does away with your ability to have alt text for the image and use it as a link. Some surfers have their browsers turn off images to speed up connections. Without the alt text, they'd have no idea what the image was about.

  8. #18
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,492
    Plugin Contributions
    11

    Default Re: Centering Logo



    Not enough coffee and multi-tasking on 27 things!

    Disregard change to logo width! What was I thinking?

  9. #19
    Join Date
    Oct 2005
    Location
    New Mexico
    Posts
    393
    Plugin Contributions
    0

    Default Re: Centering Logo

    Rose,

    Since you are making changes and then nothing happens, it is very likely that the files you are changing are in the wrong folder. One of the reasons to use the overrides properly is to avoid this.

    Here is where you logo is - /includes/templates/template_default/images/logo.gif. But you are using the /classic template.

    Another possibility is that you have extra files in the classic folders. For example, if you copy includes/languages/english.php into classic you get includes/languages/classic/english.php. If you then edit includes/languages/english.php it will NOT be used because the cart sees the file in your override.

    Also, rather than delete text from the tpl_header.php file, it is easier and more flexible to edit the header.php file I mentioned above. That way it is very easy to make changes because the code is still in the tpl_header. At present it finds a blank in the define of header.php so it shows nothing.

    The proper way to do what you want is in Clyde's post. Everytime someone says "it didn't work" it was because they had done something wrong. Usually they had files and or folders in the wrong place.

    I know you are frustrated and you may even feel like others in the forum are either picking on you or are just incompetent. (I plead innocent the first but the second in likely very accurate.) Getting help in the ZC community is much easier when you follow the suggested path for doing the core things, like templates. It not only makes your life easier, it is much easier on those trying to support you.

    Hope some of this helps.

 

 
Page 2 of 2 FirstFirst 12

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