Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jun 2007
    Posts
    167
    Plugin Contributions
    0

    help question 2 spacing issues

    Alrighty...

    My first issue is that under header I have approx 3 cm of white space that I want to get rid of. To see it place your mouse in the header area, left click and drag down. You will see a small blue area on the right... I want that to go away.

    Second issue is the opposite... the top "search" side box is touching the EZ page info bar (or whatever its called). I would like to add some space there!

    Any help is much appreciated! Thanks! PGT

    http://www.PastGenerationToys.com

  2. #2
    Join Date
    Sep 2007
    Posts
    219
    Plugin Contributions
    0

    Default Re: 2 spacing issues

    Hi PGT,

    First of all I don't understand why you have two main stylesheets? Could you not merge these into one, it would make things simpler... Well for me anyway

    Anyway to your issues.

    First of all the space is being caused by the following in catalog\includes\templates\yourtemplate\common\tpl_header.php, obviously this is taken from the page source but you should be able to see the php code you need to remove

    <div id="logo"><a href="http://www.pastgenerationtoys.com/"><img src="includes/templates/pastgen/images/logo.gif" alt="" width="10" height="10" /></a></div>

    <br class="clearBoth" />
    Explanation
    The image doesn't exist so IE in its wisdom is holding onto the space where it should be. As you have no left or right floats to clear (as you have already cleared them a few lines above) you don't need the clearboth or the line return so these can be removed as well.

    The second issue is easier, to add a margin (space) to the top of that column simply add the following to your stylesheet.

    #navColumnTwoWrapper {
    margin-top:0.5em;
    }
    And I think that should about do it

  3. #3
    Join Date
    Jun 2007
    Posts
    167
    Plugin Contributions
    0

    Default Re: 2 spacing issues

    Rufus,

    Thanks!!

    Issue 2 is no more! Issue one... I went the tpl _header.php file and the following code was not present:

    <div id="logo"><a href="http://www.pastgenerationtoys.com/"><img src="includes/templates/pastgen/images/logo.gif" alt="" width="10" height="10" /></a></div>

    <br class="clearBoth" />

    Could it be a different file?




    (catalog\includes\templates\yourtemplate\common\tpl _header.php)

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

    Default Re: 2 spacing issues

    The poster stated that this was taken from the source and this has been parsed to be your url ..

    Did you see the <div id="logo" ???

    Then it is that and the php code after that all the way to and including the clearBoth


    Code:
    <div id="logo"><a href="XXXXXXXXX XXX XxXX XXXXX XXXXX"><img src="xxxxxxxx/xxxxxx/xxxxx" alt="" width="10" height="10" /></a></div>
    
    <br class="clearBoth" />

  5. #5
    Join Date
    Jun 2007
    Posts
    167
    Plugin Contributions
    0

    Default Re: 2 spacing issues

    No, div id="logo" nor height or any thing else was found in that file. Thats what i was trying to get across. What file should I be looking for?

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

    Default Re: 2 spacing issues

    What file should I be looking for?
    uoted from rufus
    First of all the space is being caused by the following in catalog\includes\templates\yourtemplate\common\tpl _header.php

  7. #7
    Join Date
    Jun 2007
    Posts
    167
    Plugin Contributions
    0

    Default Re: 2 spacing issues

    As I stated before I am not finding that code in that file. Ill check for a third time since you seem so sure.

  8. #8
    Join Date
    Sep 2007
    Posts
    219
    Plugin Contributions
    0

    Default Re: 2 spacing issues

    Hi PGT,

    Post your tpl _header.php file and I will highlight exactly what needs to be removed.

  9. #9
    Join Date
    Jun 2007
    Posts
    167
    Plugin Contributions
    0

    Default Re: 2 spacing issues

    Thank you Rufus!!

    This is the file located at: catalog\includes\templates\yourtemplate\common\tpl _header.php

    <?php
    /**
    * Common Template - tpl_header.php
    *
    * this file can be copied to /templates/your_template_dir/pagename<br />
    * example: to override the privacy page<br />
    * make a directory /templates/my_template/privacy<br />
    * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
    * to override the global settings and turn off the footer un-comment the following line:<br />
    * <br />
    * $flag_disable_header = true;<br />
    *
    * @package templateSystem
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: J_Schilz for Integrated COWOA - 14 April 2007
    */
    ?>
    <?php
    // Display all header alerts via messageStack:
    if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
    }
    if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
    echo htmlspecialchars(urldecode($_GET['error_message']));
    }
    if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
    echo htmlspecialchars($_GET['info_message']);
    } else {
    }
    ?>

    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>
    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <?php if (!($_SESSION['COWOA'])) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li><?php } ?>
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <?php } } ?>
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
    </ul>
    </div>
    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->
    <!--bof-branding display-->
    <div id="logoWrapper">
    <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>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    <div id="taglineWrapper">
    <?php
    if (HEADER_SALES_TEXT != '') {
    ?>
    <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
    }
    ?>
    <?php
    if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
    }
    }
    ?>
    </div>
    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
    <br class="clearBoth" />
    <!--eof-branding display-->
    <!--eof-header logo and navigation display-->
    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->
    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->
    </div>
    <?php } ?>

  10. #10
    Join Date
    Sep 2007
    Posts
    219
    Plugin Contributions
    0

    Default Re: 2 spacing issues

    Quote Originally Posted by PastGenToys View Post
    Thank you Rufus!!

    This is the file located at: catalog\includes\templates\yourtemplate\common\tpl _header.php

    <?php
    /**
    * Common Template - tpl_header.php
    *
    * this file can be copied to /templates/your_template_dir/pagename<br />
    * example: to override the privacy page<br />
    * make a directory /templates/my_template/privacy<br />
    * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
    * to override the global settings and turn off the footer un-comment the following line:<br />
    * <br />
    * $flag_disable_header = true;<br />
    *
    * @package templateSystem
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: J_Schilz for Integrated COWOA - 14 April 2007
    */
    ?>
    <?php
    // Display all header alerts via messageStack:
    if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
    }
    if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
    echo htmlspecialchars(urldecode($_GET['error_message']));
    }
    if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
    echo htmlspecialchars($_GET['info_message']);
    } else {
    }
    ?>

    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>
    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <?php if (!($_SESSION['COWOA'])) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li><?php } ?>
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <?php } } ?>
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
    </ul>
    </div>
    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->
    <!--bof-branding display-->
    <div id="logoWrapper">
    <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>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    <div id="taglineWrapper">
    <?php
    if (HEADER_SALES_TEXT != '') {
    ?>
    <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
    }
    ?>
    <?php
    if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
    }
    }
    ?>
    </div>
    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
    <br class="clearBoth" />
    <!--eof-branding display-->
    <!--eof-header logo and navigation display-->
    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->
    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->
    </div>
    <?php } ?>

    To be fair to Kobra this is exactly what he told you to remove, hope this helps

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Attribute Controller Spacing Issues
    By wiccan0974 in forum General Questions
    Replies: 1
    Last Post: 31 Oct 2011, 11:37 PM
  2. Category height spacing issues
    By vanettda in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Dec 2009, 05:33 AM
  3. Cart Items Spacing Issues
    By UranusApparel in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Mar 2009, 11:39 PM
  4. Spacing issues in different browsers.
    By Orchard_Direct in forum Templates, Stylesheets, Page Layout
    Replies: 25
    Last Post: 12 Feb 2008, 11:02 PM
  5. Font size, spacing issues
    By toriapilar in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 4 Oct 2007, 05:36 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