| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Add text to the Title browser page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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.
__________________
x-cart 4.0.16v linux server |
|||||||
#2
|
|||||||
|
|||||||
![]() Do anyone have any input?
__________________
x-cart 4.0.16v linux server |
|||||||
#3
|
|||||||||
|
|||||||||
![]() 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.
|
|||||||||
#4
|
|||||||
|
|||||||
![]() How do I add a <title> tag to a page?
__________________
x-cart 4.0.16v linux server |
|||||||
#5
|
|||||||
|
|||||||
![]() 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>
__________________
x-cart 4.0.16v linux server |
|||||||
#6
|
|||||||||
|
|||||||||
![]() 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:
Then what you have as “---code---“ will only show on the Login screen. |
|||||||||
#7
|
|||||||
|
|||||||
![]() 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?
__________________
x-cart 4.0.16v linux server |
|||||||
#8
|
|||||||||
|
|||||||||
![]() Yea, just add it inbetween the <title></title> tags. And it will be everywhere.
|
|||||||||
#9
|
|||||||
|
|||||||
![]() 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?
__________________
x-cart 4.0.16v linux server |
|||||||
|
|||
X-Cart forums © 2001-2020
|