Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Channging Home Page Title

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-03-2005, 03:03 PM
 
Loony2nz Loony2nz is offline
 

Member
  
Join Date: Nov 2004
Posts: 20
 

Default 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
__________________
www.TheFrugalDiver.com
Where Diving Won\'t Cost A Lung
------------------------
X-Cart Version 4.0.5
Reply With Quote
  #2  
Old 02-06-2005, 02:51 AM
 
Davey Driver Davey Driver is offline
 

Member
  
Join Date: Jan 2005
Location: Newcastle upon Tyne
Posts: 22
 

Default

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
__________________
4.0.11 Linux
Reply With Quote
  #3  
Old 02-06-2005, 11:40 AM
 
Loony2nz Loony2nz is offline
 

Member
  
Join Date: Nov 2004
Posts: 20
 

Default

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>
__________________
www.TheFrugalDiver.com
Where Diving Won\'t Cost A Lung
------------------------
X-Cart Version 4.0.5
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020