Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2013
    Location
    Bangkok, Thailand
    Posts
    35
    Plugin Contributions
    0

    Default header alignment problems and missing items

    Hi there,

    Problem 1: large gap under my 2 logos and tagline
    Problem 2: search bar and language options missing from header (Aberdeen Neutral template)
    Site: http://asia-sell.com/store

    I have installed the Aberdeen Neutral template in my zen-cart site. I changed the logo image and it was fine. Then I tried to add another logo to the right of the first one. I found that despite putting float:left in the css file for #logo2, the second logo still ends up underneath (and to the right of) my first logo. I "fixed" this with the following line...

    #logo2 {position:relative; top:-198px; left:315px; }

    However, now I have a yawning gap under my logos and tagline. The following PHP code I put into public_html/store/includes/languages/english/aberdeen_neutral/header.php:

    define('HEADER_LOGO2_WIDTH', '159px');
    define('HEADER_LOGO2_HEIGHT', '158px');
    define('HEADER_LOGO2_IMAGE', 'logo - pangea covered 159x158.jpg');

    and the following PHP code I put into public_html/store/includes/templates/aberdeen_neutral/common/tpl_header.php

    <div id="logo2"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO2_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?>

    thanks.

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

    Default Re: header alignment problems and missing items

    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2013
    Location
    Bangkok, Thailand
    Posts
    35
    Plugin Contributions
    0

    Default Re: header alignment problems and missing items

    Hi Kobra, the blank page was due to an accidental folder deletion but I fixed it! I have messed around with the float settings some more and swapped around the order of the div id's (for logo and logo2) in the tpl_header.php file. I have got the arrangement looking more respectable.

    The layout is almost what I want in Firefox, but I want to move the tagline up and under the globe. I tried adding the following code for both the #tagline and #taglinewrapper tags to no avail...

    position:relative; top:-30px; left:340

    Another thing... the arrangement looks different in Chrome (one logo is under the other).

    Maybe I need to assign dimensions to the logo, logo2, and tagline wrappers? If this is the solution then how do I do this? When I inspect the elements in Chrome I can see the dimensions in the html code but how to edit this? I am guessing that this html code is autogenerated from the php code that I write? Sorry, new at all this. I learned a bit of html but I can't even edit that as far as i know

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: header alignment problems and missing items

    I would scrap the logo2 insert and make this a background image 950px wide and ?? high - all white except for the image
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. v153 Overall width and sidebar alignment problems
    By amyleew in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Sep 2014, 04:55 AM
  2. v150 missing items on admin dropdown menu and other problems
    By delia in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 30 Sep 2012, 12:49 AM
  3. Searchbar in header alignment problems
    By sartor in forum General Questions
    Replies: 2
    Last Post: 19 Jan 2009, 09:01 PM
  4. Please help: IE and Firefox alignment problems
    By james739 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 Oct 2007, 08:11 PM
  5. Table alignment and sizing problems
    By absoluteblock in forum General Questions
    Replies: 6
    Last Post: 8 May 2007, 05:31 AM

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