Keyword

K2 Power Tip: Remove Open Graph Meta - K2 Hack

  • Joe Campbell
  • Joe Campbell's Avatar Topic Author
  • Offline
  • Platinum Member
More
9 years 3 days ago #143382 by Joe Campbell
This is a vital hack if your using another extension to add Open Graph meta tags or if you choose to use K2 extra fields to power your meta tags (my preference)

Files:
/components/com_k2/views/item/view.html.php
/components/com_k2/views/latest​/view.html.php

Instructions:
Search for "og:" and comment out with "//", for both files

Source:
pastebin.com/iSKmKqbv

Please Log in or Create an account to join the conversation.

  • Joe Campbell
  • Joe Campbell's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 4 months ago #150189 by Joe Campbell
Replied by Joe Campbell on topic K2 Power Tip: Remove Open Graph Meta - K2 Hack
Can you deactivate the Open Graph tags with K2 v2.7?

Is there a list of the new features and bug fixes for K2 v2.7?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 months ago #150233 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Power Tip: Remove Open Graph Meta - K2 Hack
I think this qualifies as a feature request on Github Joe.
Also Merry Christmas and all the best for you and your family :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Joe Campbell
  • Joe Campbell's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 4 months ago #150239 by Joe Campbell

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 months ago #150241 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Power Tip: Remove Open Graph Meta - K2 Hack
Ohh I meant in the 2.7 Repo, the v3 will already have this option as default.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #168784 by YODAstudio
Replied by YODAstudio on topic K2 Power Tip: Remove Open Graph Meta - K2 Hack
Hello everybody!

With version 2.8.0 I commented the whole Set Facebook meta data block in the following files in order to disable K2 OG tags:

/components/com_k2/views/item/view.html.php
/components/com_k2/views/itemlist/view.html.php
/components/com_k2/views/latest/view.html.php

It seems to work.

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #168796 by JoomlaWorks
Replied by JoomlaWorks on topic K2 Power Tip: Remove Open Graph Meta - K2 Hack
OG meta tags will have a switch in the upcoming v2.8.5 and in v3.0.0 will be removed and become a plugin.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #168811 by YODAstudio
Replied by YODAstudio on topic K2 Power Tip: Remove Open Graph Meta - K2 Hack
That's what I was thinking for.
Great!

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #168816 by JoomlaWorks
Replied by JoomlaWorks on topic K2 Power Tip: Remove Open Graph Meta - K2 Hack
You're welcome :)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum