Budrys Posted November 10, 2017 Share Posted November 10, 2017 Hello. My page is https://galaxybath.co.uk/ I want to remove some http from my code. I found it in <div class="product-container" itemscope itemtype="http://schema.org/Product"><div class="left-block"><div class="product-image-container">. Where I can find that code, in which file? I think that this is in some module but I don't know in which. Link to comment Share on other sites More sharing options...
selectshop.at Posted November 10, 2017 Share Posted November 10, 2017 Why do you want to rmove this ? It is important for SEO. https://developers.google.com/search/docs/guides/intro-structured-data Link to comment Share on other sites More sharing options...
Budrys Posted November 10, 2017 Author Share Posted November 10, 2017 I don't wanna to remove it but change to https. But I can't find where it is Link to comment Share on other sites More sharing options...
selectshop.at Posted November 10, 2017 Share Posted November 10, 2017 The code should be on header.tpl of your theme. Change it on FTP /themes/themeinuse/header.tpl. Link to comment Share on other sites More sharing options...
eleazar Posted November 10, 2017 Share Posted November 10, 2017 This schema.org url is necessary for microdata. Your products would not be listed any longer as rich snippets by Google. There is no https address for this in header.tpl, so you better do not follow selectshop.at's advice to change this file. You find it in product.tpl of your theme. Link to comment Share on other sites More sharing options...
selectshop.at Posted November 11, 2017 Share Posted November 11, 2017 @ eleazar - please refresh your know how. This is wrong. You could as well reach schema.org by https. ou can use both, although http is recommended and the more known one: http://schema.org/docs/faq.html#19 And that it's needed for SEO and should not be removed, was already answered in post #2 and #3. Perhaps you overlooked that ? @ budrys - if your are using latest PS 1.6. than you possibly will find this in products.tpl as eleazar adviced. For older PS versions and/or non native themes you can find it in header.tpl. Take a look on both. Link to comment Share on other sites More sharing options...
eleazar Posted November 11, 2017 Share Posted November 11, 2017 @selectshop.at Recommended? No, both urls work. Zitat There is a general trend towards using 'https' more widely, and you can already write 'https://schema.org' in your structured data. Over time we will migrate the schema.org site itself towards using https: as the default version of the site and our preferred form in examples. However 'http://schema.org' -based URLs in structured data markup will remain widely understood for the forseeable future and there should be no urgency about migrating existing data. This is a lengthy way of saying that both 'https://schema.org' and 'http://schema.org' are fine. @Budrys To cut to the chase: If your shop is SSL protected, use https://schema.org, if not you may use the http address. You need to change the url several times in product.tpl Never ever apply changes like this in header.tpl, no matter if you use PrestaShop 1.4, 1.5 or 1.6. It would always be the wrong place. Link to comment Share on other sites More sharing options...
Budrys Posted November 13, 2017 Author Share Posted November 13, 2017 (edited) That is not in my header.tpl It's somewhere in some module. That module calls "Specials". Please check my webpage and help me find code. I'm not very familiar with PrestaShop. Edited November 13, 2017 by Budrys (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted November 13, 2017 Share Posted November 13, 2017 If you don't find the code in header.tpl nor in product.tpl, than it is better you ask the developer of the theme where he added the microformat. According to the source code of your site it should be found in the template of products, so product.tpl. Alternatively you can give me access to your FTP by PM and I search and change it for you. Link to comment Share on other sites More sharing options...
selectshop.at Posted November 13, 2017 Share Posted November 13, 2017 Indeed theme developer did not followed Prestashop architecture. Found http://schema.org in several theme template files and theme module template files. All changed for now to https://. Delete cache and check. If you are still having the problem, than please write on PM. If not I will close this question as answered. Link to comment Share on other sites More sharing options...
Budrys Posted November 14, 2017 Author Share Posted November 14, 2017 (edited) Last thing. I still have http in add to cart button: <span class="new-label">New</span> </a><div class="button-container_up"> <a class="button ajax_add_to_cart_button btn btn-default dodaj_do_koszyka" href="http://galaxybath.co.uk/cart?add=1&id_product=1766&token=b1ffdd27046f7997aa3f5df00ead4370" rel="nofollow" title="Add to cart" data-id-product="1766"> </a> That is in "Special" and "New products" modules. How can I find their files? Edited November 14, 2017 by Budrys (see edit history) 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