![]() |
Add text to the Title browser page
When I am at page in my cart, in the browser window it displays a "Title" for page:
ex. Your Company Name - Microsoft Internet Explorer (Question) What should I do to display other text on the browser "Title" for the page? ex. Your Company Name : Login - Microsoft Internet Explorer *note: add the " : Login " to the browser window. |
Re: Add text to the Title browser page
Do anyone have any input?
|
Re: Add text to the Title browser page
The title can be modified by changing the content between <title></title> in customer/home.tpl. If you add anything it will show on every page, unless you code it to only show on certain pages.
|
Re: Add text to the Title browser page
How do I add a <title> tag to a page?
|
Re: Add text to the Title browser page
This is the taging I see in the customer/home.tpl for the title names.
- What do I add if I want to place a title on the "login.tpl" page? (Curent <title> tags) <TITLE> {capture name=customer_title} {if $config.SEO.page_title_format eq "A"} {section name=position loop=$location} {$location[position].0|escape} {if not %position.last%} : {/if} {/section} {else} {section name=position loop=$location step=-1} {$location[position].0|escape} {if not %position.last%} : {/if} {/section} {/if} {/capture} </TITLE> |
Re: Add text to the Title browser page
There is a couple of ways to do this.
1. Add to the location array in a php file. For example add PHP Code:
This will be assigned as the $location variable you see in the Smarty Template. 2. If you know what the $main assigned Smarty variable is for a specific page you can add something like this to the <title></title> section. HTML Code:
{if $main eq "Login"} ---code--- {/if} Then what you have as “---code---“ will only show on the Login screen. |
Re: Add text to the Title browser page
IF I wanted to have add a --name-- which applied to ever page in my cart is their a easy way to do that, other then writing each $main eq "page name here"} for each page?
|
Re: Add text to the Title browser page
Yea, just add it inbetween the <title></title> tags. And it will be everywhere.
|
Re: Add text to the Title browser page
I have one more question.Thanks for the help by the way. :
> for pages like "Search", "Cart", "Checkout" pages is their a way for me to adjust what is showing in the title? Becuase I cannot see those applied their and titles do show for the pages? |
All times are GMT -8. The time now is 07:38 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.