![]() |
Editing Title in home.tpl
I put the below code in and it seems to work great however my static, gift cert, cart, terms, privacy statement, recover password, search & check out pages have no title now. Well it shows the url in the title but thats no good.
I tried to add {elseif $main eq "help"} {$lng.txt_subtitle_help} {elseif $main eq "cart"} {$lng.txt_subtitle_cart} {elseif $main eq "checkout"} {$lng.txt_subtitle_checkout} {elseif $main eq "order_message"} {$lng.txt_subtitle_thankyou} {elseif $main eq "wishlist"} {$lng.txt_subtitle_wishlist} {elseif $main eq "giftcert"} {$lng.txt_subtitle_giftcerts} With no luck. Not sure if its even the right way to do it. Or maybe im just putting it in the wrong part of the code. Version 3.5 Thanks for any help you can offer. Quote:
|
Put an {else} statement in there as a catachall at the end.
|
Im so new to this do you mean like this
<TITLE> {if $main eq "catalog" and $current_category.category eq ""} Home Theatre, Projectors, Plasma TVs at Australia's Audio Visual Online Shop {elseif $config.SEO.page_title_format eq "A"} {section name=position loop=$location step=-1} {math equation="x-1" x=$smarty.section.position.total assign="secondlast"} {if $smarty.section.position.iteration ne $smarty.section.position.total}{$location[position].0|escape}{/if} {if $smarty.section.position.iteration ne $secondlast}{if not %position.last%} - {/if}{/if} {/section} {else} {section name=position loop=$location step=-1}{$location[position].0|escape}{if not %position.last%} :: {/if}{/section}{/if}{else}whatever i want the catch all phrase to be</TITLE> |
Ok i've been playing with this and heres what I got. I got it to fix all those other pages with Keyword1 - Keword2-Ect but the only thing is the following code also adds it to the end of all my pages.
Code:
<TITLE> |
All times are GMT -8. The time now is 12:24 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.