![]() |
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 |
Re: Top browser bar above the URL Question
Top browser bar? You mean where the <title> tag is displayed?
|
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 |
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.
|
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 |
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> |
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 |
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 <!-- ?? -->
|
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! |
Re: Top browser bar above the URL Question
Ah thanks i will take a look
Thanks for that Richard |
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%} » {/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.