| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Remove Location Breadcrumbs from Home | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||||
|
|||||||||
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? |
|||||||||
#22
|
|||||||
|
|||||||
Re: Remove Location Breadcrumbs from Home
Please look at my code again, you didn't copy it exactly.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#23
|
|||||||||
|
|||||||||
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 |
|||||||||
#24
|
|||||||
|
|||||||
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}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#25
|
|||||||
|
|||||||
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!
__________________
4.1.8 |
|||||||
#26
|
|||||||
|
|||||||
Re: Remove Location Breadcrumbs from Home
Quote:
Where do I add this code? |
|||||||
#27
|
|||||||||
|
|||||||||
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
__________________
xcart 5.1.2 |
|||||||||
|
#28
|
|||||||
|
|||||||
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.. |
|||||||
#29
|
|||||||
|
|||||||
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.
|
|||||||
|
|||
X-Cart forums © 2001-2020
|