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

Title for home.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-24-2007, 06:20 PM
 
Scott DeToffol Scott DeToffol is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Minneapolis, MN
Posts: 174
 

Default Title for home.php

How can I change the <title> for home.php only?

Sometimes X-cart makes me feel stupid.
__________________
Scott DeToffol
Online Marketing and E-Commerce Consulting in Minneapolis

X-Cart Gold Version 4.1.9 for www.sundogtrading.com
X-Cart Pro Version 4.2.3 for www.heavyglare.com
Reply With Quote
  #2  
Old 04-24-2007, 07:43 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Title for home.php

Try this (not tested):

Code:
{strip}<title> {if $main eq "catalog" && $current_category.category eq ""} YOUR HOME PAGE TITLE {else} NOT HOMEPAGE TITLE {/if} </title>{/strip}

shouldn't this thread be in template editing? thread moved.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 04-25-2007, 02:19 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Title for home.php

PS -- if you're giving page titles your energy -- I STRONGLY recommend the "suite" of meta-tag mods from BCSE

Product Meta Tags Plus!
Static Page Meta Tag Control
Category Meta Title Control

These three mods give you total control over every page's title and keyword and descr. Don't go live without this in place!

One major weakness of stock x-cart is the SEO-hostile page titles... Google sees the stock page titles as spam... duplicate content, etc... you really need unique page titles, PER PRODUCT -- these mods will get you there.

Good luck.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #4  
Old 04-25-2007, 05:06 AM
 
Scott DeToffol Scott DeToffol is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Minneapolis, MN
Posts: 174
 

Default Re: Title for home.php

I recently installed Product Meta Tags Plus, but it doesn't help with home.php
__________________
Scott DeToffol
Online Marketing and E-Commerce Consulting in Minneapolis

X-Cart Gold Version 4.1.9 for www.sundogtrading.com
X-Cart Pro Version 4.2.3 for www.heavyglare.com
Reply With Quote
  #5  
Old 04-25-2007, 07:09 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Title for home.php

Quote:
Originally Posted by Scott DeToffol
I recently installed Product Meta Tags Plus, but it doesn't help with home.php
yes, that's why you should put

{if $main eq "catalog" && $current_category.category eq ""}
HOME PAGE TITLE
{else}

(with appropriate closing {/if} if needed)

before anything else.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #6  
Old 04-25-2007, 07:27 AM
 
Scott DeToffol Scott DeToffol is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Minneapolis, MN
Posts: 174
 

Default Re: Title for home.php

That works, thanks
__________________
Scott DeToffol
Online Marketing and E-Commerce Consulting in Minneapolis

X-Cart Gold Version 4.1.9 for www.sundogtrading.com
X-Cart Pro Version 4.2.3 for www.heavyglare.com
Reply With Quote
  #7  
Old 04-25-2007, 07:53 AM
  herbj's Avatar 
herbj herbj is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Florida
Posts: 62
 

Default Re: Title for home.php

Quote:
Originally Posted by carpeperdiem
yes, that's why you should put

{if $main eq "catalog" && $current_category.category eq ""}
HOME PAGE TITLE
{else}

(with appropriate closing {/if} if needed)

before anything else.

Where do you add this code? In home.PHP and if so where.

Sorry new to PHP.

Thanks
Reply With Quote
  #8  
Old 04-25-2007, 07:55 AM
 
Scott DeToffol Scott DeToffol is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Minneapolis, MN
Posts: 174
 

Default Re: Title for home.php

Nope, add it just under <title> in /skin1/customer/home.tpl
__________________
Scott DeToffol
Online Marketing and E-Commerce Consulting in Minneapolis

X-Cart Gold Version 4.1.9 for www.sundogtrading.com
X-Cart Pro Version 4.2.3 for www.heavyglare.com
Reply With Quote
  #9  
Old 04-25-2007, 07:58 AM
  herbj's Avatar 
herbj herbj is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Florida
Posts: 62
 

Default Re: Title for home.php

Quote:
Originally Posted by Scott DeToffol
Nope, add it just under <title> in /skin1/customer/home.tpl

Thanks for the info.
Reply With Quote
  #10  
Old 04-27-2007, 04:06 PM
 
groovedis groovedis is offline
 

Advanced Member
  
Join Date: Apr 2005
Posts: 52
 

Default Re: Title for home.php

Cheers for this. Very helpful.
__________________
X-Cart version 4.0.13 (unix)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:37 PM.

   

 
X-Cart forums © 2001-2020