Remove open graph tags

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Mar 22, 2017 7:41 pm
Reply with quote
Report this post
Hi,
I'm using a plug-in to generate open graph tags because the template built-in og support doesn't look as if it will use an article intro image. Can you tell me how to disable it?
Thanks
Ken
User avatar
Expert Boarder

GK User
Thu Mar 23, 2017 11:23 am
Reply with quote
Report this post
update:
found this post https://www.gavick.com/forums/general-d ... ph#p249651
and removed the following lines from /html/com_content/article/default.php

$doc = JFactory::getDocument();
$doc->setMetaData( 'og:title', $og_title );
$doc->setMetaData( 'og:type', $og_type );
$doc->setMetaData( 'og:url', $og_url );
$doc->setMetaData( 'og:image', $og_image );
$doc->setMetaData( 'og:site_name', $og_site_name );
$doc->setMetaData( 'og:description', $og_desc );

That did the trick.
User avatar
Expert Boarder

teitbite
Sun Mar 26, 2017 2:39 pm
Reply with quote
Report this post
Hi

Yes, that's a correct solution. Additionally on some of our templates installed from quickstart packages Open Graph Plugin needs to be disabled as well.

For users who chose K2 a file to remove that will be /html/com_k2/templates/default/item.php
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.