X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Add text to the Title browser page (https://forum.x-cart.com/showthread.php?t=25422)

mmoskva 10-01-2006 08:17 PM

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.

mmoskva 10-02-2006 07:42 PM

Re: Add text to the Title browser page
 
Do anyone have any input?

wjbrewer 10-02-2006 10:02 PM

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.

mmoskva 10-03-2006 09:48 AM

Re: Add text to the Title browser page
 
How do I add a <title> tag to a page?

mmoskva 10-04-2006 06:52 AM

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>

wjbrewer 10-04-2006 07:45 AM

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:

$location[] = array("Login"); 


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.

mmoskva 10-04-2006 08:41 AM

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?

wjbrewer 10-04-2006 08:43 AM

Re: Add text to the Title browser page
 
Yea, just add it inbetween the <title></title> tags. And it will be everywhere.

mmoskva 10-04-2006 08:56 AM

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.