Thread: Template query

Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2008
    Posts
    111
    Plugin Contributions
    0

    Default Template query

    Hi

    Been building my new website and I've got a couple of issues.

    Firstly how do I get rid of the Truly Ethical word and cross in top left of the header?

    Secondly I can't work out how to get rid of the white gap below the logo and above the catergories?

    Any help would be appreciated.

    Website is www.trulyethical.com

    Thanks

    matt

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Template query

    By "cross" do you mean the IE red x box that denotes a broken image? (Firefox doesn't show those.)

    You do not have a logo image, but the tpl_header.php code is still looking for one, and outputting the alt tag in its place.

    You need to edit /includes/templates/your_template/common/tpl_header.php and comment out the whole logoWrapper section of code.

    For the spacing, find in your stylesheet
    Code:
    .leftBoxContainer, .rightBoxContainer {
    	margin: 0em;
    	border: 1px solid #996699;
    	border-bottom: 5px solid #996699;
    	margin-top: 1.5em;
    	}
    and delete the

    margin-top: 1.5em;

    Note that this will make all of the sideboxes crowd together without spacing. If you want them spaced from each other, change margin-top: 1.5em; to margin-bottom: 1.5em;

  3. #3
    Join Date
    Oct 2008
    Posts
    111
    Plugin Contributions
    0

    Default Re: Template query

    Thanks Glen

    tried the margin thing , but it removes the wrong margin. It is the white space below the logo and above the navigation bar across the to - I guess I did not explain it properly.

    Also, so to sound stupid, but not exactly sure what you mean by the logo bit.

    Thanks

    matt

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Template query

    For that gap, find in tpl_header.php at the bottom of the logoWrapper section

    <br class="clearBoth"/>

    and replace it with

    <div class="clearBoth"></div>

    I see you have your logo as a background in #logoWrapper, so you don't want to remove the whole div.
    You do have code calling for a logo image in the #logo div, and it is not finding one. Comment out the
    <div id="logo" ... </div>

  5. #5
    Join Date
    Oct 2008
    Posts
    111
    Plugin Contributions
    0

    Default Re: Template query

    Hi

    Done has you suggested. The gap has gone - so thanks, but the IE red x box is still there!!

    Have I done the wrong thing?

    Thanks

    matt

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Template query

    Please post the section of tpl_header.php between the "bof branding display" and "eof branding display" comments, using [php] and [/php] tags, so I can see what you really have.

  7. #7
    Join Date
    Oct 2008
    Posts
    111
    Plugin Contributions
    0

    Default Re: Template query

    PHP Code:
    <!--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_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_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>
    <div class="clearBoth"></div>
    <!--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 ?>

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Template query

    You used PHP comment markers when you needed HTML comment markers
    (/* and /* would not work anyway - should be /* and */ for PHP):
    PHP Code:
        /*<div id="logo"><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">' zen_image($template->get_template_dir(HEADER_LOGO_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT) . '</a>'?></div>/*
    What you want here is <!-- and -->, with // in the PHP section of the line:
    PHP Code:
        <!-- <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> -->

  9. #9
    Join Date
    Oct 2008
    Posts
    111
    Plugin Contributions
    0

    Default Re: Template query

    Just made those changes and it looks great. You are a star - thanks

    matt

 

 

Similar Threads

  1. v151 SQL query setup. How do I TEST a query 'off-line'?
    By lewisasding in forum General Questions
    Replies: 3
    Last Post: 8 Mar 2013, 12:24 AM
  2. Store Name query - artshop template
    By jmp04 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 11 Dec 2010, 09:08 PM
  3. template host query
    By RobWUK in forum Addon Templates
    Replies: 2
    Last Post: 10 May 2010, 03:29 PM
  4. SQL Query from inside a template?
    By maeve100 in forum General Questions
    Replies: 2
    Last Post: 24 Jul 2009, 04:59 PM
  5. Problems with J-Query Template
    By Adrian88 in forum Addon Templates
    Replies: 10
    Last Post: 24 Nov 2008, 09:26 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