Thread: Westminster New

Page 151 of 187 FirstFirst ... 51101141149150151152153161 ... LastLast
Results 1,501 to 1,510 of 1865
  1. #1501
    Join Date
    Jun 2017
    Posts
    1
    Plugin Contributions
    0

    Default Re: Westminster New

    Hello,
    Currently playing around with this template working on a new web site http://www.tigerdio.com/newtigerdio/ couple of questions. First where do you do to adjust the define sales header text?? Ive looked throgh most of the style sheets but don't see where this is adjusted. Secondly how or where do you change the text for the web page tab/bookmark title right now it says Westminster New Zen Cart Template, by Picaflor Azul Thanks for any help

  2. #1502
    Join Date
    Feb 2016
    Location
    Salem, NH
    Posts
    103
    Plugin Contributions
    0

    Default Re: Westminster New

    Quote Originally Posted by Amethyst_fairy View Post
    Hi Lisa

    Try this. I found for some reason needed to lose the under score but can try both ways. https://www.zen-cart.com/content.php?100

    Sandria
    I was wrong you need the underscore so xyz_1 xyz_2 xyz_3

  3. #1503
    Join Date
    Feb 2016
    Location
    Salem, NH
    Posts
    103
    Plugin Contributions
    0

    Default Re: Westminster New

    Was wondering is there any way to make the main menu sticky on scroll if open.

    Thanks
    Sandria

    https://www.thedragonskeep.net

  4. #1504
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Re: Westminster New

    I am trying to remove the Header Sales Text in the header (under logo) to bring the rest of the page up by negating the space that this uses - I think I have isolated where to do it but not sure how to edit out - I tried using // to edit out certain lines but then lost the template altogether so I am obviously putting them in the wrong place - I am definitely not a coder so need some help.

    cheers, Mike

    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>

    <?php // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>

    </div>

    <br class="clearBoth" />
    <!--eof-branding display-->
    image is of developer results for HEADER_SALES_TEXT

    Attachment 17208
    Last edited by shags38; 8 Aug 2017 at 05:05 AM.

  5. #1505
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Westminster New

    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  6. #1506
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Re: Westminster New

    Quote Originally Posted by RixStix View Post
    Thanks Rick however it doesn't actually show how to delete it as far as I can see.

  7. #1507
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Westminster New

    Normally one would just edit the language file and change the define for HEADER_SALES_TEXT to:
    Code:
    define('HEADER_SALES_TEXT', '');
    That SHOULD be enough for 99.99% of cases.

    But, in very rare cases where the template author has added additional surrounding divs that are causing other layout issues, you could completely delete it altogether by removing this code:
    Code:
     <?php              if (HEADER_SALES_TEXT != '') {
    ?>
          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div></div>
    <?php
                  }
    ?>
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #1508
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Re: Westminster New

    Quote Originally Posted by DrByte View Post
    Normally one would just edit the language file and change the define for HEADER_SALES_TEXT to:
    Code:
    define('HEADER_SALES_TEXT', '');
    That SHOULD be enough for 99.99% of cases.

    But, in very rare cases where the template author has added additional surrounding divs that are causing other layout issues, you could completely delete it altogether by removing this code:
    Code:
     <?php              if (HEADER_SALES_TEXT != '') {
    ?>
          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div></div>
    <?php
                  }
    ?>
    Many thanks Doc - the first option merely results in HEADER_SALES_TEXT appearing.
    I deleted the selected code above and that did delete the HEADER_SALES_TEXT but then sent everything (basics of unmodified template, just started to set up this new site) on the main page down under the RH Column.

    I just kinda wish Anne would take a peek inside the forum

    cheers,
    Mike

    Attachment 17218

    Attachment 17219
    Last edited by shags38; 10 Aug 2017 at 03:44 AM.

  9. #1509
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Westminster New

    For option 1, I didn't tell you to comment-out the whole define. I told you to change the define so that its value was defined as blank.

    For option 2, well, the layout probably broke because what I told you to remove included an extra </div> that shouldn't have been there in the first place. I made the mistake of assuming that the template code you quoted hadn't been unreasonably messed with.

    Oh man, whoever customized that section of the code broke up all the logic badly, moving HTML around without respect to the PHP logic that controls optional components displaying when they should and hiding when they shouldn't.

    Change that whole section of code to this (I've moved 2 </div> tags around):
    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_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_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>
    <?php
                  }
    ?>
        </div>
    <?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>
    </div>
    
    <br class="clearBoth" />
    <!--eof-branding display-->
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #1510
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Re: Westminster New

    Quote Originally Posted by DrByte View Post
    For option 1, I didn't tell you to comment-out the whole define. I told you to change the define so that its value was defined as blank.

    For option 2, well, the layout probably broke because what I told you to remove included an extra </div> that shouldn't have been there in the first place. I made the mistake of assuming that the template code you quoted hadn't been unreasonably messed with.

    Oh man, whoever customized that section of the code broke up all the logic badly, moving HTML around without respect to the PHP logic that controls optional components displaying when they should and hiding when they shouldn't.

    Change that whole section of code to this (I've moved 2 </div> tags around):
    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_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_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>
    <?php
                  }
    ?>
        </div>
    <?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>
    </div>
    
    <br class="clearBoth" />
    <!--eof-branding display-->
    Thanks Doc,

    1. I only delete text within the ' ' not the whole define prior to changing the code in tpl_header.php as per your post - now deleting text in the define includes/languages/english/responsive_all_business/header.php, after installing your modified code, has achieved exactly what I wanted ... so thank you very much.

    As to the existing code in tpl_header.php - it is as per the file in the template package

    Many thanks for sorting this one for me.

    cheers,
    Mike

 

 

Similar Threads

  1. v155 Getting ajax error in v155 with v154 Westminster template
    By godt in forum General Questions
    Replies: 3
    Last Post: 11 Jul 2016, 12:41 AM
  2. v155 Getting ajax error in v155 with v154 Westminster template
    By MCS_Computers in forum General Questions
    Replies: 10
    Last Post: 21 Mar 2016, 03:58 PM
  3. v154 Modifying Top Menu - Westminster New
    By chelseaneedshelp in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Mar 2015, 04:28 PM
  4. Westminster New doesn't work on mobile phone
    By Pompidompie in forum Addon Templates
    Replies: 3
    Last Post: 26 Mar 2015, 10:34 PM
  5. v151 westminster new Share and Connect
    By Larry0652 in forum Addon Templates
    Replies: 8
    Last Post: 24 Oct 2014, 03:30 PM

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