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)
-   -   Top browser bar above the URL Question (https://forum.x-cart.com/showthread.php?t=28504)

ezi designs 02-01-2007 02:21 PM

Top browser bar above the URL Question
 
Ok, i have been scratching around and around for the answer to this question but can find it nowhere.

What i am trying to acheive in the top browser bar above the URL is to change the text it displays somewhat to make it a little search engine friendly. Many companys do it and replace there company name with the products they sell.

The only way i have found of doing it was to put the details into the x-cart admin - general settings - company options - company name.

The only problem with this is it messes up the invoices and other x-cart links.

Is there another way to edit the top browser bar !


Please help

Richard

balinor 02-01-2007 02:52 PM

Re: Top browser bar above the URL Question
 
Top browser bar? You mean where the <title> tag is displayed?

ezi designs 02-01-2007 02:54 PM

Re: Top browser bar above the URL Question
 
Hi

Yes sorry the title tag as it plays a vital part of any page. I am assuming it may have something to do with the skin1/customer/home.tpl but a little unsure. I do have the DESFU mod but this does not address this area.

If you can help in what code needs to be put where it would help a lot.


Thanks

Richard

balinor 02-01-2007 02:57 PM

Re: Top browser bar above the URL Question
 
You would simply need to change the <title> tag in customer/home.tpl. You can use {if} statements to display different text depending on where the customer is on the site. FYI, you can easily change the title display order in General Settings/SEO options so the product shows first.

ezi designs 02-01-2007 03:13 PM

Re: Top browser bar above the URL Question
 
Thanks for the quick reply


I have played around with the seo settings but that does not really address what i am after.

For instance if i wanted to put ' this is a great site designed by me' into the title tag for every page the only way i know wouold be to add it to the company options - company name, but this messes with the breadcrumbs and the invoice.

If i was to use this text as an example and not being to hot with the {if} statements is it a large script change. My home.tpl <title> looks like this

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


Thanks again


Richard

balinor 02-01-2007 03:15 PM

Re: Top browser bar above the URL Question
 
Adding the text to the <title> tags doesn't mess with the breadcrumbs so just add it to the <title> tag code itself:

<title>this is a great site designed by me -
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|strip_tags|escape}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|strip_tags|escape}
{if not %position.last%} :: {/if}
{/section}
{/if}
</title>

ezi designs 02-01-2007 03:23 PM

Re: Top browser bar above the URL Question
 
Thanks so very much for your help. Quite why this is not built into some of the SEO mods is a complete mistery to me.. but hey there you go.


Thanks again

Richard

ezi designs 02-01-2007 03:35 PM

Re: Top browser bar above the URL Question
 
Ah just one other thing, as i would no longer need the SEO title display as you mentioned earlier to show up, what bit do i remove <!-- ?? -->

carpeperdiem 02-01-2007 04:26 PM

Re: Top browser bar above the URL Question
 
A more elegant and totally custom (on a per-product basis) solution is available from BCSE

Product Meta Tags Plus!

ezi designs 02-01-2007 11:55 PM

Re: Top browser bar above the URL Question
 
Ah thanks i will take a look


Thanks for that



Richard

impact-computers 03-20-2007 09:29 AM

Re: Top browser bar above the URL Question
 
How would i get this to work if i'm using CDSEO?

Heres my location.tpl

{* $Id: location.tpl,v 1.13 2004/05/29 14:21:41 svowl Exp $ *}
{if $location}
<FONT class="NavigationPath">
{* WCM - CDSEO Links - Start *}
{*strip*}
{* WCM - CDSEO Links - End *}
{section name=position loop=$location}
{if $location[position].1 ne "" }<A href="{$location[position].1}" class="NavigationPath">{/if}
{$location[position].0}
{if $location[position].1 ne "" }</A>{/if}
{if not %position.last%}&nbsp;&raquo;&nbsp;{/if}
{/section}
{* WCM - CDSEO Links - Start *}
{*/strip*}
{* WCM - CDSEO Links - End *}
</FONT>
{/if}


All times are GMT -8. The time now is 01:34 PM.

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