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

H1 tags

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-16-2008, 05:50 PM
 
mtd_2002 mtd_2002 is offline
 

Member
  
Join Date: Jan 2008
Posts: 11
 

Default Re: SEO Checklist for New Stores

How do I get the H1 tags (step #5) to only show on the product title, and not every title on the page, e.g. send to a friend, recommended products etc as they each call the dialog.tpl from what I can see. I tried to modify the product.tpl but can't get it to work properly. Is it possible to add "if" statement to dialog.tpl to show <h1> only on product template?

Thanks,
Mike
__________________
------------------
Mike D
www.alongcamebaby.ca
xcart gold 4.4.2
Reply With Quote
  #2  
Old 05-17-2008, 03:08 AM
 
balinor balinor is offline
 

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

Default Re: H1 tags

Moving this to its own thread. The method I usually use is to create two versions of dialog.tpl - one with h1 tags, one without. Call the h1 version (I usually call it dialog-h1.tpl) where you want them to appear - mainly subcategories.tpl and product.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-29-2008, 06:09 PM
 
mtd_2002 mtd_2002 is offline
 

Member
  
Join Date: Jan 2008
Posts: 11
 

Default Re: H1 tags

Thanks! You are a great help to everyone on the forum.

Mike
__________________
------------------
Mike D
www.alongcamebaby.ca
xcart gold 4.4.2
Reply With Quote
  #4  
Old 06-02-2008, 06:13 PM
 
mtd_2002 mtd_2002 is offline
 

Member
  
Join Date: Jan 2008
Posts: 11
 

Default Re: H1 tags

Thanks again. Is there a reason why the H1 tag in Safari vs. IE looks so different? When using the original dialog template, the font size for the titles and vertical menu titles appear the same in both browsers (about 14px). When I changed to use H1, the font is very large when using the same 14px and it appears almost double the size in IE compared with Safari.

Is there a way to write an if statement to look at browser people are using and then use different stylesheet?

Thanks,
Mike
__________________
------------------
Mike D
www.alongcamebaby.ca
xcart gold 4.4.2
Reply With Quote
  #5  
Old 06-02-2008, 06:21 PM
 
balinor balinor is offline
 

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

Default Re: H1 tags

Depends on the font you are calling - remember PC and MAC have different fonts, so you need to make sure you specify a universal one or you'll get unreliable results.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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:26 AM.

   

 
X-Cart forums © 2001-2020