Keyword

[PLUGINS] Where to change og:title from k2 social plugin?

  • web_dev
  • web_dev's Avatar Topic Author
  • Offline
  • Senior Member
More
9 years 2 months ago #140954 by web_dev
Hi,

where can i change og:title content? My linktype is k2 categories, i tried it with page heading but this don't change og:title.

Thanke you.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 months ago #140968 by Krikor Boghossian
Replied by Krikor Boghossian on topic Where to change og:title from k2 social plugin?
Hello,

Do you mean K2 or are you using an additional social extension?

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

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

  • web_dev
  • web_dev's Avatar Topic Author
  • Offline
  • Senior Member
More
9 years 2 months ago #140977 by web_dev
I use only k2

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 months ago #140987 by Krikor Boghossian
Replied by Krikor Boghossian on topic Where to change og:title from k2 social plugin?
You need to edit core files to alter the og: tags.
These files cannot be overriden so backup before editing.
When you update you need to repatch K2.

The og: tags are being generated here github.com/joomlaworks/k2/blob/master/components/com_k2/views/itemlist/view.html.php#L698-L709

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

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

  • web_dev
  • web_dev's Avatar Topic Author
  • Offline
  • Senior Member
More
9 years 2 months ago #141012 by web_dev
Can i deactivate this tags from k2? I don't want to hack in core files...

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

More
9 years 2 months ago #141017 by Joe Campbell
Replied by Joe Campbell on topic Where to change og:title from k2 social plugin?
Personally, I think K2 should offer the ability to control the output of all meta data (via parameters), including :

- title tag
- meta title
- meta description
- open graph tags

That way people would not need to hack any files.

The other option is for a developer to create a plugin to provide meta control.
The plugin could be called "K2 Meta Control" - Anyone interested?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 months ago #141032 by Krikor Boghossian
Replied by Krikor Boghossian on topic Where to change og:title from k2 social plugin?
This sounds interesting, but I think there are already several extensions that offer social media integration. They offer k2 integration but I think a K2 specific extension would be interesting.

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

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

More
9 years 2 months ago #141041 by Joe Campbell
Replied by Joe Campbell on topic Where to change og:title from k2 social plugin?
Correct, there are social media integration extensions, but why not offer the ability to deactivate all of the options that I mentioned.

K2 offers the control of other parameters (RSS feed, image, etc.) Why not meta data?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 months ago #141044 by Krikor Boghossian
Replied by Krikor Boghossian on topic Where to change og:title from k2 social plugin?
I think this can be a stock option for v3 github.com/joomlaworks/k2-v3-dev-build/issues

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

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

More
9 years 1 month ago #141479 by Joe Campbell
Replied by Joe Campbell on topic Where to change og:title from k2 social plugin?
Here are two hack solutions:

Comment Out Code:
www.joomlaworks.net/forum/k2-en/35388-k2-has-2-sets-of-og-tags#125099

Modification Solution:
www.itoctopus.com/k2-and-setting-the-wrong-open-graph-description-meta-tag

I personally recommend using Extra Fields to produce item page meta data (for maximum flexibility):
www.joomlaworks.net/forum/k2-en/40022-my-meta-name-and-meta-description-are-totally-broken#140600

Note: K2 v2.x does not offer the ability to use extra fields for category, tag and author pages, for this you can use a plugin that adds meta to the page head, like this:
extensions.joomla.org/extension/headtag

I hope this helps :)

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


Powered by Kunena Forum