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)
-   -   Channging Home Page Title (https://forum.x-cart.com/showthread.php?t=11932)

Loony2nz 02-03-2005 03:03 PM

Channging Home Page Title
 
Hi,

I'm having a *bleep* of a time trying to change the <title></title> of my home page.

I know the Company Name shows up on the homepage, but I want to amend it. Right now it just states my Website name, "The Frugal Diver". That's set in the Company settings in the admin, I know. But, I want to tack on other keywords after the website name.

Here is the snippet I'm trying to alter:

<TITLE>{if $extra_fields[2].field_value ne ""}
{* ********** TOTAL META CONTROL ******** *}
{$extra_fields[2].field_value}
{* ********** TOTAL META CONTROL ******** *}
{else}
{* ********** TOTAL META CONTROL ******** *}
{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}
{/if}{* ********** TOTAL META CONTROL ******** *}</TITLE>

Where do i put "Buy scuba diving gear" after "The Frugal Diver" in this snippet?

Note: I only want "Buy scuba diving gear" on the homepage. Subsequent category and product pages, I want, "<category> - The Frugal Diver" or "<product> - The Frugal Diver"

Thanks all!
Chris

Davey Driver 02-06-2005 02:51 AM

I'm a Newbie with XCart but I altered text on my home page using the webmaster mode in Admin then opened the customer home page, click on text and add the text you need added then save.


Sorry if I've misunderstood and given the wrong info, but as you'd recieved no replies :wink:

Loony2nz 02-06-2005 11:40 AM

I fixed it with the help of my host provider.

They added a new lbl variable for me, where I can change it at will in the Language section.

But my quandry was that I only wanted in my homepage title:
Company Name - Slogan of choice

On my product pages, I only wanted the title to read:
Product Name

My new code snippet looks like this:

<TITLE>{if $extra_fields[2].field_value ne ""}
{* ********** TOTAL META CONTROL ******** *}
{$extra_fields[2].field_value}
{* ********** TOTAL META CONTROL ******** *}
{else}
{* ********** TOTAL META CONTROL ******** *}

{if $prince.title}
{$prince.title}
{else}
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{if not %position.first%}{$location[position].0|escape}
{else}{$lng.txt_site_title}{/if}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{if not %position.first%}{$location[position].0|escape}
{else}{$lng.txt_site_title}{/if}
{if not %position.last%} :: {/if}
{/section}
{/if}
{/if}

{/if}{* ********** TOTAL META CONTROL ******** *}</TITLE>


All times are GMT -8. The time now is 07:37 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.