How to edit Title on Static Pages
How can I edit the title tag for Static Pages?
Regards, |
It automatically pulls the name of the page. All page titles in X-Cart are controlled by the title tag in customer/home.tpl.
|
Here is my title section in home.tpl. Am I missing something in here that will fix my problem? Thanks Ryan.
----- {strip} <title> {if $main eq "catalog"} {if $location eq ""} {else} {section name=position loop=$location start=1 } {if %position.last% eq "true"} {$location[position].0|escape}{/if} {/section} {/if} {elseif $main eq "product"} {if $product.product ne ''} {$product.product}{/if} - Buy Used Cisco Sell {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} {/if} </title> {/strip} |
What version are you using? Please put it in your signature.
|
Sorry, using X-Cart version 4.0.14
|
I assume that is your custom code in there, as that is not the default title code for .14.
If you want to use if statements for static pages, they would look like this: {elseif $smarty.get.pageid eq "x"} where x is the number of the static page. |
That works great. Thanks for the heads up.
|
All times are GMT -8. The time now is 10:18 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.