Thomas777 Posted February 5, 2022 Share Posted February 5, 2022 (edited) Hello, i have a warning in google search console that logo url is wrong and i should fix this. It is actually wrong as you can see in the photo. I am using prestashop 1.7.8.3 and classic rocket theme. Any idea how to fix this? Thanks. https://vlachoshome.com/ Edited November 14, 2022 by Thomas777 (see edit history) Link to comment Share on other sites More sharing options...
Thomas777 Posted February 7, 2022 Author Share Posted February 7, 2022 I think i have to change something in file /themes/classic-rocket/templates/_partilals/microdata-jsonld.tpl <meta property="og:title" content="{$page.meta.title}"/> <meta property="og:description" content="{$page.meta.description}"/> <meta property="og:type" content="website"/> <meta property="og:url" content="{$urls.current_url}"/> <meta property="og:site_name" content="{$shop.name}"/> {if isset($product) && $page.page_name == 'product'} <meta property="og:type" content="product"/> {if $product.images|count > 0} {foreach from=$product.images item=p_img name="p_img_list"} <meta property="og:image" content="{$p_img.large.url}"/> {/foreach} <meta property="og:image:height" content="{$p_img.large.height}"/> <meta property="og:image:width" content="{$p_img.large.width}"/> {/if} {if $product.show_price} <meta property="product:price:amount" content="{$product.price_amount}" /> <meta property="product:price:currency" content="{$currency.iso_code}" /> {if $product.has_discount} <meta property="product:price:standard_amount" content="{$product.regular_price_amount}" /> {/if} {/if} {if $product_manufacturer->name} <meta property="product:brand" content="{$product_manufacturer->name|escape:'html':'UTF-8'}" /> {/if} <meta property="og:availability" content="{if $product.quantity_all_versions > 0 || $product.allow_oosp > 0}instock{else}out of stock{/if}" /> {elseif $page.page_name === 'category' && isset($category) && $category.image.large.url} <meta property="og:image" content="{$category.image.large.url}"/> {else} <meta property="og:image" content="{$urls.shop_domain_url}{$shop.logo}"/> Any help? Link to comment Share on other sites More sharing options...
Thomas777 Posted February 7, 2022 Author Share Posted February 7, 2022 For anyone with the same problem you have to change a line of that file Change <meta property="og:image" content="{$urls.shop_domain_url}{$shop.logo}"/> with <meta property="og:image" content="{$shop.logo}"/> 1 Link to comment Share on other sites More sharing options...
antonio Posted February 23, 2022 Share Posted February 23, 2022 grazie! Link to comment Share on other sites More sharing options...
Thomas777 Posted February 23, 2022 Author Share Posted February 23, 2022 (edited) Couple days later i got another error in google search console for the logo so i also changed the following in the same file. Now it works fine. "@context" : "http://schema.org", "@type" : "Organization", "name" : "{$shop.name}", "url" : "{$urls.pages.index}", "logo" : { "@type":"ImageObject", "url":"{$urls.shop_domain_url}{$shop.logo}" with "@context" : "http://schema.org", "@type" : "Organization", "name" : "{$shop.name}", "url" : "{$urls.pages.index}", "logo" : { "@type":"ImageObject", "url":"{$shop.logo}" and "@context": "http://schema.org", "@type": "WebSite", "url" : "{$urls.pages.index}", "image": { "@type": "ImageObject", "url":"{$urls.shop_domain_url}{$shop.logo}" with "@context": "http://schema.org", "@type": "WebSite", "url" : "{$urls.pages.index}", "image": { "@type": "ImageObject", "url":"{$urls.shop_domain_url}" Edited November 23, 2022 by Thomas777 (see edit history) 1 Link to comment Share on other sites More sharing options...
antonio Posted February 23, 2022 Share Posted February 23, 2022 grande! Link to comment Share on other sites More sharing options...
gouna Posted August 26, 2022 Share Posted August 26, 2022 Merci! Link to comment Share on other sites More sharing options...
nikoz Posted October 13, 2022 Share Posted October 13, 2022 Same problem, Im using prestashop 1.7 but I dont have this file in this location. https://zacharoglou.com/ Link to comment Share on other sites More sharing options...
Thomas777 Posted October 13, 2022 Author Share Posted October 13, 2022 First of all i am not a developer and my knowleges are very limited so i can not give you the solution. Everything i say take it with extremely very caution and do not forget to backup any file that you are going to change. Actually you do not have the same problem and not calssic-rocket as a theme, if you have paid for that theme i would ask the developer directly, at least he is a developer and i am not. Having said that, your problem is propably in a file called header.tpl which in classic-rocket theme is in themes/classic-rocket/templates/_partials/header.tpl Maybe it is similar to your theme maybe not. You have to search and find there a line that looks like to the screenshot you have posted. There you will have to modify the part with the src= so it looks like this: src="{$shop.logo}" Again backup everything as i am NOT A DEVELOPER, i could be totally wrong about what your problem is and if something goes wrong i propably will not be able to help you Καλή τύχη αδερφέ!! Link to comment Share on other sites More sharing options...
SOUCHET Posted June 22, 2023 Share Posted June 22, 2023 Thank you VERY much 🥳 (after 4 hours searching which file has to be changed.... 😅 ) 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