![]() |
Remove Location Breadcrumbs from Home
Is there any way that I can prevent displaying the breadcrumb navigation links that appear at the top of each store page just on the store Home page? That's the only page I don't want them to appear.
I presume there's some conditional I might add to the /customer/home.tpl template where this line appears: Code:
{include file="location.tpl"} But I don't know if there's a global var I can check in Smarty that tells me whether or not I'm currently viewing the store home page?? Thanks. |
look in home_main.tpl see the elseif statements. look for the one that includes welcome.tpl
|
Thanks for the tip, Shan.
For anyone interested, this is how I turned off the breadcrumbs on the store homepage only: In the /customer/home.tpl file, replace this line... Code:
{include file="location.tpl"} ...with these lines... Code:
{if $main ne "catalog" or $current_category.category ne ""} Now the breadcrumb navigation links appear on all pages except for the Store homepage. |
A follow up on this - how do we have the breadcrumbs appear *only* on the product pages?
So they don't show up: - on the home page (got that one covered!) - on the category pages - on the non shopping pages we create (like customer service policies and contact us) - on the search page |
Aha! Figured it out!
{if $product.productid ne ""} {include file="location.tpl"} {/if} |
Re: Remove Location Breadcrumbs from Home
Works great for Gold Version 4.1.9. Thanks
|
Re: Remove Location Breadcrumbs from Home
thanks, i've been looking for this.
|
Re: Remove Location Breadcrumbs from Home
Note for products, there may be instances where $products.productid is defined and the user is not on the product page, so it is better to use this for product pages only:
{if $main eq "product"} {include file="location.tpl"} {/if} |
Re: Remove Location Breadcrumbs from Home
{if $main ne "catalog" or $current_category.category ne ""}
What does the 'ne' ? mean |
Re: Remove Location Breadcrumbs from Home
How do you highlight the current page in the breadcrumb trail?
ETA: Found my answer - go to the css and find the .NavigationPath class and change the font color, decoration, etcetera... Any hard coding changes you would like to make would be in the location.tpl file under skin1. |
All times are GMT -8. The time now is 06:07 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.