- Posts: 68
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- [PLUGINS] Where to change og:title from k2 social plugin?
[PLUGINS] Where to change og:title from k2 social plugin?
- web_dev
-
Topic Author
- Offline
- Senior Member
Less
More
10 years 2 months ago #140954
by web_dev
Where to change og:title from k2 social plugin? was created 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.
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
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 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?
Do you mean K2 or are you using an additional social extension?
Please Log in or Create an account to join the conversation.
- web_dev
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 68
10 years 2 months ago #140977
by web_dev
Replied by web_dev on topic Where to change og:title from k2 social plugin?
I use only k2
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 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
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
Please Log in or Create an account to join the conversation.
- web_dev
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 68
10 years 2 months ago #141012
by web_dev
Replied by web_dev on topic Where to change og:title from k2 social plugin?
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.
- Joe Campbell
-
- Offline
- Platinum Member
Less
More
- Posts: 438
10 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?
- 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
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 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.
Please Log in or Create an account to join the conversation.
- Joe Campbell
-
- Offline
- Platinum Member
Less
More
- Posts: 438
10 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?
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
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 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
Please Log in or Create an account to join the conversation.
- Joe Campbell
-
- Offline
- Platinum Member
Less
More
- Posts: 438
10 years 2 months 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 :)
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.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 2 months ago #141528
by Krikor Boghossian
Replied by Krikor Boghossian on topic Where to change og:title from k2 social plugin?
Joe once again, you rock :)
Please Log in or Create an account to join the conversation.
- Joe Campbell
-
- Offline
- Platinum Member
Less
More
- Posts: 438
10 years 2 months ago #141579
by Joe Campbell
Replied by Joe Campbell on topic Where to change og:title from k2 social plugin?
Thanks Krikor, I appreciate the compliment and truly enjoy helping others in building quality Joomla! websites :-)
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- [PLUGINS] Where to change og:title from k2 social plugin?