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)
-   -   Title for home.php (https://forum.x-cart.com/showthread.php?t=30693)

Scott DeToffol 04-24-2007 06:20 PM

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

Sometimes X-cart makes me feel stupid. :oops:

carpeperdiem 04-24-2007 07:43 PM

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.

carpeperdiem 04-25-2007 02:19 AM

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.

Scott DeToffol 04-25-2007 05:06 AM

Re: Title for home.php
 
I recently installed Product Meta Tags Plus, but it doesn't help with home.php

carpeperdiem 04-25-2007 07:09 AM

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.

Scott DeToffol 04-25-2007 07:27 AM

Re: Title for home.php
 
That works, thanks

herbj 04-25-2007 07:53 AM

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

Scott DeToffol 04-25-2007 07:55 AM

Re: Title for home.php
 
Nope, add it just under <title> in /skin1/customer/home.tpl

herbj 04-25-2007 07:58 AM

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.

groovedis 04-27-2007 04:06 PM

Re: Title for home.php
 
Cheers for this. Very helpful.


All times are GMT -8. The time now is 10:43 PM.

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