Remove open graph tags
Rate this topic: 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
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
-
- 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.
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.
-
- 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
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
-
- Moderator
3 posts
• Page 1 of 1