Forum
Welcome, Guest
Please Login to access forum.
[CLOSED]Add itemprop="image" in Meta (1 viewing) 
Go to bottom
TOPIC: [CLOSED]Add itemprop="image" in Meta
#7736
Kaygod d.o.o, Ilica 213, 10000 Zagreb, Croatia
Fresh Boarder
Posts: 2
User Offline
[CLOSED]Add itemprop="image" in Meta Karma: 0  
I have added some share buttons on my website. Everything works fine and the correct data is show as added in the "Search engines metainfo" panel. The og:image tag works fine for all share buttons except "WhatsApp". The Image don´t show up. Now i ask google for help and i found the solution, but i don´t know were to configure it.

Original Meta
<meta property="og:image" content="http://www.rhychi.com/images/event_images/rhyCHI_Events_herbstmarkt_3.jpg" />

Should BE
<meta property="og:image" itemprop="image" content="http://www.rhychi.com/images/event_images/rhyCHI_Events_herbstmarkt_3.jpg" />

Any Ideas...???

One more question Is there a way to add "property="og:type" in the meta info?
 
Logged Logged  
  The topic has been closed.
#7737
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:Add itemprop="image" in Meta Karma: 79  
The feature of jsitemap uses the standard Joomla API for custom meta tags, thus the itemprop="image" addition is not supported. You should switch to a custom tag API instead.

To do this you should customize the source code of the plugin file:

root/plugins/system/jmap/jmap.php

at the line 323, changing from:

Code:

$document->setMetaData('og:image', $imageLink, 'property');
to
Code:

$document->addCustomTag('<meta property="og:image" itemprop="image" content="' . $imageLink . '" /> ');
The same is valid for the addition of og:type, you can add below the line:
Code:

$document->setMetaData('og:type', 'article');
By the way if you need advanced management of Open Graph tags, you may consider to switch to another specific and more advanced plugin, obviously this is not a key feature of jsitemap. Best regards
 
Logged Logged  
  The topic has been closed.
#7738
Kaygod d.o.o, Ilica 213, 10000 Zagreb, Croatia
Fresh Boarder
Posts: 2
User Offline
Re:Add itemprop="image" in Meta Karma: 0  
Hey John,

Thanks for the fast support. Works fine now...

BR,
Elvis
 
Logged Logged  
  The topic has been closed.
Go to top