![]() |
Re: Remove Location Breadcrumbs from Home
Thanks Balinor, once again...
I am having a problem when I have the following: {if $main ne "catalog" or $current_category.category ne ""} {include file="shared/navigation/breadcrumbs.tpl"}{/if} {if $main ne "catalog" or $current_category.category ne ""} Welcome! {/if} "Welcome" does not show, any ideas? |
Re: Remove Location Breadcrumbs from Home
Please look at my code again, you didn't copy it exactly.
|
Re: Remove Location Breadcrumbs from Home
Yes I did, but then the breadcrumbs do not show up on the other pages. This is why I need it changed.
THnaks |
Re: Remove Location Breadcrumbs from Home
What do you want to do? Show welcome on the home page and location breadcrumbs on the other pages? If so, use this:
{if $main eq "catalog" and $current_category.category eq ""} Welcome!{else}{include file="shared/navigation/breadcrumbs.tpl"}{/if} |
Re: Remove Location Breadcrumbs from Home
To add on to all of this, how can I get breadcrumbs to show up only on product pages and sub-category pages?
At the moment, for products only, I have: {if $main eq "product"} {include file="location.tpl"} {/if} Thanks! |
Re: Remove Location Breadcrumbs from Home
Quote:
Where do I add this code? |
Re: Remove Location Breadcrumbs from Home
you replace this
{include file="location.tpl"} with this {if $main eq "product" OR ($main eq "catalog" AND $current_category.categoryid gt 0)} {include file="location.tpl"} {/if} location.tpl is probably in home.tpl |
Re: Remove Location Breadcrumbs from Home
Quote:
Thanks I will try that. I guess it is the same place where you remove the breadcrumb for home, which I already did and it looks so much better.. |
Re: Remove Location Breadcrumbs from Home
Thanks for all contributions in this thread. Works like a charm and no way I would have been able to figure that out myself.
|
All times are GMT -8. The time now is 02:47 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.