Keyword

How to add custom meta tags to items?

  • Nikita
  • Nikita's Avatar Topic Author
  • Offline
  • New Member
More
8 years 2 months ago #156322 by Nikita
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.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #156338 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to add custom meta tags to items?
Hello Nikita,

K2 will automatically set these tags for you.
The item's title, image and introtext are being used to populate this data.

You can change the behaviour by adding custom tags in your template with this function - docs.joomla.org/JDocument/setMetaData
Remember to use overrides getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

However if you need a K2 plugin to manually enter these values through the backend you need to search the JED. I 'm sorry but I am not aware an extension so I can recommend one.

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