Image thumbnail not showing
« on: September 15, 2019, 12:07:54 PM »
help me fix this please.
when i share items on social media, no image shows, how do i fix it?

*

MB Themes

Re: Image thumbnail not showing
« Reply #1 on: September 15, 2019, 12:31:37 PM »
Check your structured data.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Image thumbnail not showing
« Reply #2 on: September 15, 2019, 12:35:59 PM »
Check your structured data.

please how do i do that?

*

MB Themes

Re: Image thumbnail not showing
« Reply #3 on: September 15, 2019, 03:54:30 PM »
Og tags on item page should be filled properly (check source code)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Image thumbnail not showing
« Reply #4 on: October 01, 2019, 12:13:06 PM »
Og tags on item page should be filled properly (check source code)

please how do i locate this og tag?

*

MB Themes

Re: Image thumbnail not showing
« Reply #5 on: October 02, 2019, 07:52:29 AM »
In item.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Image thumbnail not showing
« Reply #6 on: October 02, 2019, 11:32:00 AM »
the og tag is correct.

it's not only on facebook that this error is happening, it's happening everywhere i past my url.
title and description will show but no image will appear.

*

siken

  • ****
  • 136 posts
Re: Image thumbnail not showing
« Reply #7 on: October 02, 2019, 04:28:05 PM »
the og tag is correct.

it's not only on facebook that this error is happening, it's happening everywhere i past my url.
title and description will show but no image will appear.


Change/Add in Item.php this:


Code: [Select]
<!-- GOOGLE RICH SNIPPETS -->
<span itemscope itemtype="https://schema.org/Product">
<h1><meta itemprop="name" content="<?php echo osc_item_category($locale ""); ?> » <?php echo osc_item_country();?> » <?php echo osc_item_region();?> » <?php echo osc_item_city();?>" /></h1>
<meta itemprop="title" content="<?php echo osc_item_category($locale ""); ?> en <?php echo osc_item_country();?> » <?php echo osc_item_region();?> » <?php echo osc_item_city();?><?php echo osc_esc_html(osc_item_title()); ?>" />
<meta itemprop="description" content="<?php echo osc_esc_html(osc_item_title()); ?><?php echo osc_esc_html(osc_highlight(osc_item_description(), 500)); ?>" />
<?php if(osc_count_item_resources() > 0) { ?><meta itemprop="image" content="<?php echo osc_resource_url(); ?>" />
<meta itemprop="photo" src="<?php echo osc_resource_url(); ?>" alt="<?php echo osc_item_category($locale ""); ?>" /><?php ?>
<meta itemprop="openingHours" content="Mo-Su 00:00-24:00" />
<meta itemprop="telephone" content="<?php echo $mobile?>" />
<meta itemprop="email" content="<?php echo osc_item_contact_email(); ?>" />
<meta itemprop="url" content="<?php echo osc_resource_url(); ?>" />
</span>

<!-- FACEBOOK OPEN GRAPH TAGS -->
<meta property="fb:app_id" content="[color=red]PUT HERE YOUR ID IN APP FACEBOOK, EXAMPLE: 411004465943527[/color]" />
<meta property="fb:admins" content="[color=red]PUT HERE YOUR ID IN APP FACEBOOK, EXAMPLE: 411004465943527[/color]" />
<meta property="og:site_name" content="[color=red]PUT HERE YOUR SITE NAME, EXAMPLE: EXAMPLE.COM[/color]" />
<meta property="og:locale" content="<?php echo osc_current_user_locale(); ?>" />
<meta property="og:type" content="article" />
<meta property="article:published_time" content="2013-09-17T05:59:00+01:00" />
<meta property="article:modified_time" content="2013-09-16T19:08:47+01:00" />
<meta property="article:section" content="Public Profile" />
<meta property="article:tag" content="[color=red]PUT HERE YOUR HAASHTAG, EXAMPLE: EXAMPLECOM[/color]" />

<meta property="og:url" content="<?php echo osc_item_url(); ?>" />
<meta property="og:title" content="<?php echo osc_item_category($locale ""); ?> en <?php echo osc_item_country();?> » <?php echo osc_item_region();?> » <?php echo osc_item_city();?><?php echo osc_esc_html(osc_item_title()); ?>" />
<?php if(osc_count_item_resources() > 0) { ?><meta property="og:image" content="<?php echo osc_resource_url(); ?>" /><?php ?>
<meta property="og:description" content="<?php echo osc_esc_html(osc_item_title()); ?><?php echo osc_esc_html(osc_highlight(osc_item_description(), 500)); ?>" />
<meta property="product:retailer_item_id" content="<?php echo osc_item_id(); ?>" />
<meta property="product:price:amount" content="<?php echo strip_tags(osc_item_formated_price()); ?>" />
<?php if(osc_item_price() <> '' and osc_item_price() <> 0) { ?><meta property="product:price:currency" content="<?php echo osc_item_currency(); ?>" /><?php ?>

<!-- Twitter Card data -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="[color=red]PUT HERE YOUR SITE NAME, EXAMPLE: @examplecom[/color]" />
<meta name="twitter:title" content="[color=red]PUT HERE YOUR TITLE ITEM[/color]" />

<meta name="twitter:description" content="<?php echo osc_item_category($locale ""); ?> » #<?php echo osc_item_country();?> » #<?php echo osc_item_region();?> » #<?php echo osc_item_city();?><?php echo osc_esc_html(osc_item_title()); ?>" />
<meta name="twitter:creator" content="[color=red]PUT HERE YOUR SITE NAME, EXAMPLE: @examplecom[/color]" />
<meta name="twitter:image:src" content="<?php echo osc_resource_url(); ?>" />


This is just an example.
You can try adding or removing categories, or locations... You can customize how your items will appear on whatsapp, facebook or twitter ...

*

Own Petz

  • ***
  • 32 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: Image thumbnail not showing
« Reply #8 on: November 17, 2022, 09:25:32 AM »
I am also getting this type of issue from 2 days. when i am sharing any product on other platform its only showing link .. before 2 days all thing is working fine. while when i am sharing through mobile its working fine. I think its only desktop view problem. 
before 2 days when i was pasting my product url its shows product image description but now nothing , i am not understanding what happened because I have not changes anything in item.php ..
 
one blog i have added in blogs and use textarea code in source code , i was thinking this is the problem so i deleted that blog but still this problem .

see the attached image when i was sharing product its showing home page url only

Please tell me how to fix the issue..


Thanks in Advance..     
« Last Edit: November 17, 2022, 09:31:33 AM by Own Petz »
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

Own Petz

  • ***
  • 32 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: Image thumbnail not showing
« Reply #9 on: November 17, 2022, 09:55:53 AM »
One more thing when any link you clink or frontend or backend first its showing url on top for 1-2  seconds then its showing title check screenshots both i have marked with circle.
« Last Edit: November 17, 2022, 11:15:41 AM by Own Petz »
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

Own Petz

  • ***
  • 32 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: Image thumbnail not showing
« Reply #10 on: November 18, 2022, 06:27:54 AM »
now its working automatically . now its showing all images, description . I dont know why but its working automatically now..  :D ;)
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com