Zen Cart Logo
Forums / Addon Templates / Westminster New

Westminster New

Views: 494,191

Results 1,501 to 1,520 of 1,865
4 Jul 2017, 6:05 PM
#1501
stug avatar

stug

New Zenner

Join Date:
Jun 2017
Posts:
1
Plugin Contributions:
0

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

17 Jul 2017, 1:57 PM
#1502
amethyst_fairy avatar

amethyst_fairy

Zen Follower

Join Date:
Feb 2016
Location:
Salem, NH
Posts:
103
Plugin Contributions:
0

Re: Westminster New

Amethyst_fairy:

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

5 Aug 2017, 6:57 PM
#1503
amethyst_fairy avatar

amethyst_fairy

Zen Follower

Join Date:
Feb 2016
Location:
Salem, NH
Posts:
103
Plugin Contributions:
0

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

8 Aug 2017, 4:02 AM
#1504
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

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

<!--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></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 no longer available]

9 Aug 2017, 4:32 AM
#1507
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Westminster New

Normally one would just edit the language file and change the define for HEADER_SALES_TEXT to:

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:```

<?php if (HEADER_SALES_TEXT != '') { ?>
  <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div></div>
<?php } ?>
10 Aug 2017, 2:42 AM
#1508
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Westminster New

DrByte:

Normally one would just edit the language file and change the define for HEADER_SALES_TEXT to:

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:```
 <?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 no longer available]

[Attachment no longer available]

10 Aug 2017, 4:59 AM
#1509
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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):

<!--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-->
10 Aug 2017, 6:20 AM
#1510
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Westminster New

DrByte:

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):

<!--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

11 Aug 2017, 11:02 PM
#1511
techietom911 avatar

techietom911

New Zenner

Join Date:
Mar 2017
Location:
Idaho
Posts:
13
Plugin Contributions:
0

Re: Westminster New

Hello I am using vs 1.5.5e with Westminster New and am trying to copy more of the "homead1,2,3"on the home page. I saw this:

In the middle of the home page there are three homeads. Is there a way to add more of these?
You can add more in includes/languages/english/html_includes/westminster_new/define_main_page.php. If you want them to be editable via the banner manager you will have to create new banner groups.

I have copied and pasted the php code and changed the "homead1" to my new "homead4". My test site is http://www.karendonleavy.technicalcomputer.com/

What am I missing?
Thanks,
Tom

11 Aug 2017, 11:37 PM
#1512
techietom911 avatar

techietom911

New Zenner

Join Date:
Mar 2017
Location:
Idaho
Posts:
13
Plugin Contributions:
0

Re: Westminster New

The homeads are now Cookie Jar, Serving Bowl and Serving Plater.

Sorry I should have mentioned that earlier.

Tom

12 Aug 2017, 2:12 PM
#1513
maynards avatar

maynards

Zen Follower

Join Date:
Feb 2010
Location:
Minnesota
Posts:
392
Plugin Contributions:
0

Re: Westminster New

techietom911:

Hello I am using vs 1.5.5e with Westminster New and am trying to copy more of the "homead1,2,3"on the home page. I saw this:

In the middle of the home page there are three homeads. Is there a way to add more of these?
You can add more in includes/languages/english/html_includes/westminster_new/define_main_page.php. If you want them to be editable via the banner manager you will have to create new banner groups.

I have copied and pasted the php code and changed the "homead1" to my new "homead4". My test site is http://www.karendonleavy.technicalcomputer.com/

What am I missing?
Thanks,
Tom

I wish I could be of some help Tom. I had the same question and I tried different things but I have very limited knowledge on these things. I ended up emailing the author of this template and paying her to add a fourth banner. My site ( ma ynar ds tackl e.c om). You can see a fourth on added.
I would like to know in detail the steps it would take to add another banner and do it myself. I do enjoy knowing these thing rather than having someone do it for me.

15 Aug 2017, 4:39 AM
#1514
techietom911 avatar

techietom911

New Zenner

Join Date:
Mar 2017
Location:
Idaho
Posts:
13
Plugin Contributions:
0

Re: Westminster New

Thanks Maynards I will take a look at your website.

30 Aug 2017, 6:52 AM
#1515
trekjunky avatar

trekjunky

New Zenner

Join Date:
Aug 2017
Location:
Detroit, Michigan, USA
Posts:
7
Plugin Contributions:
0

Re: Westminster New

Hi. I am not able to figure out how to remove the "Useful Links" link under the Information category. Please help.

30 Aug 2017, 11:55 AM
#1516
gunni avatar

gunni

Zen Follower

Join Date:
Aug 2010
Location:
Israel
Posts:
287
Plugin Contributions:
0

Re: Westminster New

If I remember well, you should add display: none; to stylesheet.css
and then play with the CSS for mobile/tablet.
If not, give us your website url.

1 Sep 2017, 9:01 AM
#1517
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Westminster New

Hi all,

Just upgraded a site from ZC 1.5.1 to 1.5.5e

The site owner alerted me that the search box in the header is showing in all browsers (Firefox, Safari, Opera) but it will not show in Chrome. Checked it on my box on Chrome and yes, they are right. Only the 'Go' button shows, but not the search box.

The site is unisonics [dot] com [dot] au

Would be grateful if someone can throw a light on this.

Cheers / Frank

1 Sep 2017, 11:22 AM
#1518
gunni avatar

gunni

Zen Follower

Join Date:
Aug 2010
Location:
Israel
Posts:
287
Plugin Contributions:
0

Re: Westminster New

Here is a light:
If you turn off the background from tylesheet.css line #324 you will see the search box.

2 Sep 2017, 12:21 AM
#1519
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Westminster New

gunni:

Here is a light:
If you turn off the background from tylesheet.css line #324 you will see the search box.

That didn't (and couldn't) work as it killed the entire background of the nav bar.

So, when I first designed the new layout in this template I had to move

<div id="navMainSearch">

    <?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>
    
</div>

from includes/templates/westminster_new/common/tpl_header.php to includes/templates/westminster_new/templates/tpl_modules_mobile_categories_tabs.php just before <script src="...... so it looked like this:

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

    <?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>
    
</div>

That worked fine in all browsers but not in Chrome. So I just changed the above to

<div id="navMainSearch">

    <?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>
    
</div>
<div class="clearBoth"></div>

and Bingo! - all fixed, thanks.

2 Sep 2017, 12:57 AM
#1520
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Westminster New

It's always nice to get the answers to the posting tips after the fix. :P :smartalec: