Open graph - now wrong og-Tags

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Fri Jan 01, 2016 12:14 pm
I hope all of you will have a happy new year.

I have a little problem with the open graph plugin.
I installed it because I always try out those things in the rest-files of my template. But it wasn´t what I expected and I uninstalled it. There are some plugins mentioned here in the forum, so I´ll give a look on them next days.

Unfortunately I have still og:tags in my sites header. All social options in my template are disabled, all facebook related plugins are not active, no other og-plugins are installed. Some of my content has <meta property="og:type" content="site" />, given from the plugin, there "site" was set, there I get an error when i test them with the developer tool.
Code: Select all
Object at URL 'http://www.testserver.grizzly-adams.de/index.php/saison-2015-2016/das-team-2015-2016' is invalid because the configured 'og:type' of 'site' is invalid.


Some content has this tag: <meta property="og:type" content="article" />, they are doing fine. They have og-tags, but seems to be right. I changed the plugins setting to this I think.

How can I get rid of those og-tags? Why they are still there even if the plugin is uninstalled, cleared caches too? If I´ll use another plugin, then the og:tags will be doubled?
Or do you know a trick how to change all "content="site" to "content="article". Maybe a Database query? I do not want to change this manually for all of my content. When i reinstall the plugin, i can change the tag in the editor, but there are many articles with the wrong tag. Any ideas?

Thank you in advance,
Steffi
User avatar
Senior Boarder

teitbite
Sat Jan 02, 2016 12:37 pm
Hi

Plugin was prepared for older templates. In newer we have prepared a build-in system. To get rid of it go to file /html/com_content/article/default.php and remove this lines:

Code: Select all
$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 );
User avatar
Moderator

GK User
Sun Jan 03, 2016 12:41 pm
Yes, now I can use the og-tags from an other plugin only. Thank you
User avatar
Senior Boarder

teitbite
Wed Jan 06, 2016 11:10 am
Hi

Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron