![]() |
Remove product title in location.tpl
Hi all,
Does anyone know how i can remove the product title from the breadcrumb do i have to edit location.tpl? Many Thanks Richie |
Re: Remove product title in location.tpl
Edit the 'product.php' script, replace:
PHP Code:
with PHP Code:
|
Re: Remove product title in location.tpl
ah great thanks Ene worked perfectly.
|
Re: Remove product title in location.tpl
Hi,
Although this removes the product title from the breadcrumb it also removes it from the page title which is rubbish for SEO. I didnt realise but the page titles(home.tpl) are built from the breadcrumb(location.tpl) is there any way around this does anyone know of a solution? So is there a way of hiding the product title in the breadcrumb but showing it in the page titles? Many thanks in advance |
Re: Remove product title in location.tpl
Quote:
A quick rehash (including warts and all) of location.tpl for you... PHP Code:
Hope this helps. ========================== Edit: Note: It will always remove the current area. For example, it will remove the breadcrumb from the home page or the current category you reside in on a page. |
Re: Remove product title in location.tpl
Another quick rehash at the tpl level, but this time to specifically remove the product name on just the product page...
PHP Code:
Might want to clean up the if statements though. Some of the section's attributes might produce cleaner code but unable to make it work at the moment. |
Re: Remove product title in location.tpl
hey thanks, your update works may look into cleaning up the second example many thanks though :-)
I didnt know you could use section attributes? |
Re: Remove product title in location.tpl
Section attributes...
http://www.smarty.net/manual/en/language.function.section.php And another crack at tpl level for removing the product name on the product page's breadcrumb (a little cleaner, no idea if it is quicker though)... PHP Code:
|
Re: Remove product title in location.tpl
Do you also know how to do the opposite? I want to remove the Shop name (First breadcrumb) from the breadcrumbs. I'm affraid that the breadcrumb gets to wide since i changed it into a bigger font.
Thanks! |
Re: Remove product title in location.tpl
Hi inmotionmedia,
add the start attribute to the section (I've also removed the outer lying FONT tags as they'll get printed on the home page as an empty tag) Code:
{if $location} If you need the FONT tags find the appropriate IF statement to exclude breadcrumbs from the home page Hope this helps. |
All times are GMT -8. The time now is 11:22 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.