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)
-   -   H1 tags (https://forum.x-cart.com/showthread.php?t=39844)

mtd_2002 05-16-2008 05:50 PM

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

balinor 05-17-2008 03:08 AM

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

mtd_2002 05-29-2008 06:09 PM

Re: H1 tags
 
Thanks! You are a great help to everyone on the forum.

Mike

mtd_2002 06-02-2008 06:13 PM

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

balinor 06-02-2008 06:21 PM

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.


All times are GMT -8. The time now is 07:30 PM.

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