Keyword

A little question about add custom tags

  • myquyen1996
  • myquyen1996's Avatar Topic Author
  • Offline
  • New Member
More
6 years 1 month ago #167071 by myquyen1996
A little question about add custom tags was created by myquyen1996
I use joomla with k2 and i need to add Opeh Graph meta tags to my items. I alreday have meta description and others which i don't need. I need to add meta og:image ,og:image:height and og:image:width. I try to do this with JS, but than facebook grabber doesn't see my meta tags. So i need to add them with backend part. Also i need the oportunity to change thir values from my admin panel. Maybe you know some plugins(free) or something else? Maybe k2 have some own solutions?
Thanks!

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

  • myquyen1996
  • myquyen1996's Avatar Topic Author
  • Offline
  • New Member
More
6 years 1 month ago #167072 by myquyen1996
Replied by myquyen1996 on topic A little question about add custom tags
please help me

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 1 month ago #167095 by Krikor Boghossian
Replied by Krikor Boghossian on topic A little question about add custom tags
Hello,

Og tags are already inclued, you can add custom ones using Joomla!'s API (addMetadata / addCustomMeta) in your item.php file overrides ( getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates )

Some example code can be found here github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L176-L191

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