Results 1 to 10 of 842

Threaded View

  1. #11
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Sheffield Blue Template Support Thread

    Hello again

    if you go to
    includes/languages/english/sheffield_blue/header.php
    and set
    Code:
    define('HEADER_SALES_TEXT', 'A Free Template by www.picaflor-azul.com.');
    to

    Code:
    define('HEADER_SALES_TEXT', '');
    The layout breaks

    The coding issue is here
    includes\templates\sheffield_blue\common\tpl_header.php

    PHP Code:
     <div id="taglineWrapper">
    <?php
                  
    if (HEADER_SALES_TEXT != '') {
    ?>
          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div></div>
    <?php
                  
    }
    ?>
    The second </div> in that statement is the one that should close the taglineWrapper div, but if you have no tagline the ending </div> won't be actioned and your layout breaks

    so you need to change it to
    PHP Code:
    <?php
                  
    if (HEADER_SALES_TEXT != '') {
    ?> <div id="taglineWrapper">

          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div></div>
    <?php
                  
    }
    ?>
    But that still doesn't fix the layout issue because this
    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>'?>
    <?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></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> <!-- This div here -->

    <?php // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>

    <div id="header-right">
    The closing </div> for the logo div is within this statement scope

    PHP Code:
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET2))) { ?>
    moving it out like below fixes the problem for me

    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>'?>
    <?php 
    if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET2))) { ?>
       
    <?php
                  
    if (HEADER_SALES_TEXT != '') {
    ?> <div id="taglineWrapper">
          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div></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
                    
    }
                  }
    ?>


    <?php // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
        </div> <!-- Moves to here here -->
    <div id="header-right">
    <!--bof-navigation display-->
    Last edited by nigelt74; 5 Dec 2012 at 06:10 AM. Reason: prettyifing
    Webzings Design
    Semi retired from Web Design

 

 

Similar Threads

  1. v151 Responsive Sheffield Blue v1.0
    By picaflor-azul in forum Addon Templates
    Replies: 1159
    Last Post: 23 Apr 2023, 01:20 AM
  2. v155 Column issues on Product Listings with Sheffield Blue template
    By wmorris in forum General Questions
    Replies: 4
    Last Post: 15 Apr 2016, 10:01 PM
  3. Replies: 5
    Last Post: 30 May 2014, 02:43 AM
  4. v151 Blue Admin [Support Thread]
    By vvomble in forum Addon Templates
    Replies: 11
    Last Post: 27 May 2013, 09:43 PM
  5. Gingham Blue Template Support Thread
    By LissaE in forum Addon Templates
    Replies: 9
    Last Post: 17 Apr 2009, 10:19 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