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

Top browser bar above the URL Question

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-01-2007, 02:21 PM
  ezi designs's Avatar 
ezi designs ezi designs is offline
 

Senior Member
  
Join Date: Sep 2006
Location: United Kingdom
Posts: 118
 

Exclamation 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
__________________
x-cart 4.1.6

DSEFU PRO

http.www.demontemplates.com
Reply With Quote
  #2  
Old 02-01-2007, 02:52 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Top browser bar above the URL Question

Top browser bar? You mean where the <title> tag is displayed?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-01-2007, 02:54 PM
  ezi designs's Avatar 
ezi designs ezi designs is offline
 

Senior Member
  
Join Date: Sep 2006
Location: United Kingdom
Posts: 118
 

Default 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
__________________
x-cart 4.1.6

DSEFU PRO

http.www.demontemplates.com
Reply With Quote
  #4  
Old 02-01-2007, 02:57 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 02-01-2007, 03:13 PM
  ezi designs's Avatar 
ezi designs ezi designs is offline
 

Senior Member
  
Join Date: Sep 2006
Location: United Kingdom
Posts: 118
 

Default 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
__________________
x-cart 4.1.6

DSEFU PRO

http.www.demontemplates.com
Reply With Quote
  #6  
Old 02-01-2007, 03:15 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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>
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 02-01-2007, 03:23 PM
  ezi designs's Avatar 
ezi designs ezi designs is offline
 

Senior Member
  
Join Date: Sep 2006
Location: United Kingdom
Posts: 118
 

Default 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
__________________
x-cart 4.1.6

DSEFU PRO

http.www.demontemplates.com
Reply With Quote
  #8  
Old 02-01-2007, 03:35 PM
  ezi designs's Avatar 
ezi designs ezi designs is offline
 

Senior Member
  
Join Date: Sep 2006
Location: United Kingdom
Posts: 118
 

Default 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 <!-- ?? -->
__________________
x-cart 4.1.6

DSEFU PRO

http.www.demontemplates.com
Reply With Quote
  #9  
Old 02-01-2007, 04:26 PM
 
carpeperdiem carpeperdiem is offline
 

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

Default 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!
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #10  
Old 02-01-2007, 11:55 PM
  ezi designs's Avatar 
ezi designs ezi designs is offline
 

Senior Member
  
Join Date: Sep 2006
Location: United Kingdom
Posts: 118
 

Default Re: Top browser bar above the URL Question

Ah thanks i will take a look


Thanks for that



Richard
__________________
x-cart 4.1.6

DSEFU PRO

http.www.demontemplates.com
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 11:15 AM.

   

 
X-Cart forums © 2001-2020