![]() |
Changing page tile on home page
Hello.
I would like to change the page title on the home page to say "Discount Perfume : Womens & Men's Fragrances" but to leave it dynamic for the other pages such as the product pages. Can someone help me with the code please? I know I have to edit customer/home.tpl and have tried the following code: <TITLE> {if $config.SEO.page_title_format eq "A"} {section name=position loop=$location} {$location[position].0|escape} {if not %position.last%} - {/if} {/section} START OF MY CODE {if $main eq "index"} Discount Perfume : Womens & Men's Fragrances {/if} {else} END OF MY CODE {section name=position loop=$location step=-1} {$location[position].0|escape} The problem is I don't know what $main should be. I've tried "home" and "index" and they both don't seemed to work. What am I doing wrong please? Thanks. |
try this:
Code:
{if $main eq "catalog" and $current_category.category eq ""}Your title here{else} |
Thank Balinor
That's exactly what I need :D |
All times are GMT -8. The time now is 02:35 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.