stampy Posted February 22, 2009 Share Posted February 22, 2009 I know that on php generated pages you can't change the HTML etc, but is it possible to change the H1 tags, add more H2 tags etc on the Homepage? I've gone through the files and can't seem to find anywhere that I could do this. Link to comment Share on other sites More sharing options...
stampy Posted February 25, 2009 Author Share Posted February 25, 2009 Surprised no one has had this issue - H Tags are pretty important for SEO, so I'm figuring that there has got to be a way to change them on the Homepage, rather than they just get randomly associated. Link to comment Share on other sites More sharing options...
jhnstcks Posted February 26, 2009 Share Posted February 26, 2009 Hi StampyWhat exactly did you want to change on the homepage?You can change any text in prestashop by using the tpl files and just changing the code for that bit of text.For example. {$product.name|truncate:50|escape:htmlall:'UTF-8'} This is taken from my homefeatured.tpl file and is the code for the product title. As you can see it currently has H5 tags, if you want to change it then just change to H1 or H2 or whatever. {if $xml->body->$title}{$xml->body->$title|stripslashes}{/if} This is taken from the editorial.tpl and is the main title, it already has H2 tags but you could just alter it to H1.Hope this helps you out. Link to comment Share on other sites More sharing options...
stampy Posted February 28, 2009 Author Share Posted February 28, 2009 Thanks John, that helps loads. Much appreciated as always. Link to comment Share on other sites More sharing options...
davidan Posted October 31, 2009 Share Posted October 31, 2009 Hi,I would like to delete the h1 in the header ans add a new h1 for each category : I want to take the 30 first letters of the category description to make this new h1. Is that possible ? What is the code ?Thanks Link to comment Share on other sites More sharing options...
davidan Posted November 1, 2009 Share Posted November 1, 2009 It's ok, it works perfectly. {$category->description|truncate:30:""} I hope there is no problem with SEOThanks Link to comment Share on other sites More sharing options...
Recommended Posts