ianditch Posted July 18, 2021 Share Posted July 18, 2021 (edited) Hi There, Is there a reason why there is no 'H1' tag on the home/index page? I would have thought this would have been added for SEO purposes but seeing how this has not been, i'm wondering if the H1 tag has been missed on purpose? I've removed the top carousel/banners from my home page and changed the translation of "ShopThemeCatalog - 1 expression" or "Special Products" as my theme calls it (see attached image) to a main heading and I would like this to be the 'H1' tag. 1st of all. Is this wise to do? If prestashop have not done this as default, am i causing SEO issues by doing this? 2nd, How to I do this? I cant see which template I need to edit to achiveve this. 3rd, is this simply a matter of finding this <h2></h2> header and changing it to <h1></h1> in the template file? Any advise would be appreciated. Edited July 18, 2021 by ianditch (see edit history) Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 19, 2021 Share Posted July 19, 2021 @ianditch Which version of Prestashop you are using. 1.6 or 1.7. Is your theme is default PrestaShop theme or any custom theme. you can use any content added module to add content in your site home hook with h1 tag if that is missing. Thank you Link to comment Share on other sites More sharing options...
ianditch Posted July 19, 2021 Author Share Posted July 19, 2021 Thanks SmartDataSoft, I'm using 1.7 with the Apparel theme. As well as trying to change this, i'm trying to keep everything SEO freiendly. If I was to move the current H2 wording, that would leave an empty H2 tag I assume? I want to change this from the current H2 to the H1 instead of doing this through a module. I understand that i would then need to add a css class to resize this H1 tag. This shouldnt be that hard to do but i just cant see which file i need to alter? Any pointers would be very helpful. Ian Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 20, 2021 Share Posted July 20, 2021 @ianditch Thank you as i have no experience in Apparel Theme , i am unable to guide because not sure they module has by default option to alter the tag or not. Secondly if this comes from a native module template. In that case by editing the module template file form themes can serve this. You can contact with the theme author support they can guide you. Normally in our page builder like crazy elements we give option to change title heading via page builder. Thank you Link to comment Share on other sites More sharing options...
ComGrafPL Posted July 20, 2021 Share Posted July 20, 2021 On 7/18/2021 at 12:57 PM, ianditch said: Hi There, Is there a reason why there is no 'H1' tag on the home/index page? I would have thought this would have been added for SEO purposes but seeing how this has not been, i'm wondering if the H1 tag has been missed on purpose? I've removed the top carousel/banners from my home page and changed the translation of "ShopThemeCatalog - 1 expression" or "Special Products" as my theme calls it (see attached image) to a main heading and I would like this to be the 'H1' tag. 1st of all. Is this wise to do? If prestashop have not done this as default, am i causing SEO issues by doing this? 2nd, How to I do this? I cant see which template I need to edit to achiveve this. 3rd, is this simply a matter of finding this <h2></h2> header and changing it to <h1></h1> in the template file? Any advise would be appreciated. Can you post a link? Link to comment Share on other sites More sharing options...
MILBUC Posted July 20, 2021 Share Posted July 20, 2021 same problem for me on 1.7 with classic theme i don't find where to add the H1 on my home page. it was easy on 1.6 -> seo & url then it was possible to change it (index), if i do the same on 1.7 nothing appear any idea guys? Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 20, 2021 Share Posted July 20, 2021 @MILBUC Using ps_customtext you can change the text and add your h1 tag and also content. Is this what you are looking for Thank you Link to comment Share on other sites More sharing options...
MILBUC Posted July 20, 2021 Share Posted July 20, 2021 (edited) it's a solution but not the one i was looking for. i think it's not the good place to add the H1, take a look what i get it appear the H1 in the custom text block but as you can see the logical place to ass the h1 still empty and give me the message "no heading text" (sorry for my bad english) Edited July 20, 2021 by MILBUC (see edit history) Link to comment Share on other sites More sharing options...
ianditch Posted July 20, 2021 Author Share Posted July 20, 2021 Thanks All. I'm not sure that using a module to achieve this is the best approach but i'll give the ps_customtext module a blast and see how I get on. Ian Link to comment Share on other sites More sharing options...
MILBUC Posted July 20, 2021 Share Posted July 20, 2021 2 hours ago, ianditch said: Thanks All. I'm not sure that using a module to achieve this is the best approach but i'll give the ps_customtext module a blast and see how I get on. Ian indeed this is not the good way. But finally i found how to correctly add the h1 tag. 1st you have to know 1.7 use your shop name as h1 tag, the name in the footer (informations column) will also be used as h1. that's really stupid... So what i did: in your template, you will find your h1. something like that <h1> <a href="{$urls.base_url}"> <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}"> </a> </h1> What you have to do is changing {$shop.name} with the h1 tag you want. Done! Again sry for my bad english Link to comment Share on other sites More sharing options...
ianditch Posted July 21, 2021 Author Share Posted July 21, 2021 (edited) Thanks MILBUC, Your English is perfect! I think i've worked out a better way of doing this.... Definitely works for the Apparel theme using 1.7. Navigate to and open "themes\*your theme*\modules\ps_featuredproducts\views\templates\hook\ps_featuredproducts.tpl". On this page you will see the <H2></H2> tags. Change these to the <H1></H1>. So, find <h2> <span>{l s='Special Products' d='Shop.Theme.Catalog'}</span> </h2> And change this to the below... <h1> <span>{l s='Your H1 Text Here' d='Shop.Theme.Catalog'}</span> </h1> Clear the cache and then view your home page. This should now be showing as the H1 heading. To add style to this, give this a unquie class and then add your required style in the Css file. <h1 class="home_h1"> <span>{l s='Your H1 Text Here' d='Shop.Theme.Catalog'}</span> </h1> I hope this helps others out. Ian Edited July 21, 2021 by ianditch Spelling (see edit history) Link to comment Share on other sites More sharing options...
MILBUC Posted July 21, 2021 Share Posted July 21, 2021 it's also a good way to fix it 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now