Osclass Support Forums
Osclass theme support => Beta Osclass Theme => Topic started by: [email protected] 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?
-
Check your structured data.
-
Check your structured data.
please how do i do that?
-
Og tags on item page should be filled properly (check source code)
-
Og tags on item page should be filled properly (check source code)
please how do i locate this og tag?
-
In item.php
-
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.
-
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:
<!-- 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 ...
-
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..
-
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.
-
now its working automatically . now its showing all images, description . I dont know why but its working automatically now.. :D ;)