Jump to content

Invalid logo URL


Thomas777

Recommended Posts

  • razaro changed the title to Invalid logo URL

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

  • 3 weeks later...

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 by Thomas777 (see edit history)
  • Thanks 1
Link to comment
Share on other sites

  • 6 months later...
  • 1 month later...

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

  • 7 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...