Keyword

A little question about add custom tags

  • myquyen1996
  • myquyen1996's Avatar Topic Author
  • Offline
  • New Member
More
3 months 1 week ago #167071 by myquyen1996
myquyen1996 created the topic: A little question about add custom tags
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
3 months 1 week ago #167072 by myquyen1996
myquyen1996 replied the topic: A little question about add custom tags
please help me

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

More
3 months 1 week ago #167095 by Krikor
Krikor replied the 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

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

Moderators: william white