- Posts: 16
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- [SOLVED] K2-Tag Page not rendering OpenGraphtitle correctly
[SOLVED] K2-Tag Page not rendering OpenGraphtitle correctly
- Chris Casconi
- Topic Author
- Offline
- New Member
Less
More
10 years 10 months ago #121584
by Chris Casconi
[SOLVED] K2-Tag Page not rendering OpenGraphtitle correctly was created by Chris Casconi
Hello,
I have searched and searched the forms by cannot seem to find an answer.
I have noticed that one of my Open Graph properties is not rendering correctly. This is what I am seeing:
<meta property="og:title" content="Displaying items by tag: 1970s Shows" />
<meta property="og:type" content="website" />
<title>1970's TV Shows - Best of 70's TV @ The Classic TV Database</title>
I would like for the real title of the page "1970's TV Shows - Best of 70's TV @ The Classic TV Database" be shown instead of "Displaying items by tag:...".
This happens for all of my "tag pages". It will say say "Displaying items by tag:..."
I have the real title being set in sh404sef. I have Open Graph rendering turned off in sh404sef.
Is there a way to correct this issue?
I have searched and searched the forms by cannot seem to find an answer.
I have noticed that one of my Open Graph properties is not rendering correctly. This is what I am seeing:
<meta property="og:title" content="Displaying items by tag: 1970s Shows" />
<meta property="og:type" content="website" />
<title>1970's TV Shows - Best of 70's TV @ The Classic TV Database</title>
I would like for the real title of the page "1970's TV Shows - Best of 70's TV @ The Classic TV Database" be shown instead of "Displaying items by tag:...".
This happens for all of my "tag pages". It will say say "Displaying items by tag:..."
I have the real title being set in sh404sef. I have Open Graph rendering turned off in sh404sef.
Is there a way to correct this issue?
Please Log in or Create an account to join the conversation.
- Yiota
- Visitor
10 years 10 months ago #121585
by Yiota
Replied by Yiota on topic Re: K2-Tag Page not rendering OpenGraphtitle correctly
I'm afraid that this is the generic pretext for the tag pages title. If you do not have a menu item linking to then in order to fetch its title, it generates this one.
You have 3 options to solve this
1) To create menu items for all your tags.
2) The "Displaying items by tag:" comes through a language string. You can locate it in the K2 language file (K2_DISPLAYING_ITEMS_BY_TAG) and erase its definition.
3) You can modify the core K2 file components/com_k2/views/itemlist/view.html.php
My recommendation is No 2. It's the safest and easiest solution ;)
You have 3 options to solve this
1) To create menu items for all your tags.
2) The "Displaying items by tag:" comes through a language string. You can locate it in the K2 language file (K2_DISPLAYING_ITEMS_BY_TAG) and erase its definition.
3) You can modify the core K2 file components/com_k2/views/itemlist/view.html.php
My recommendation is No 2. It's the safest and easiest solution ;)
Please Log in or Create an account to join the conversation.
- Chris Casconi
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
10 years 10 months ago #121586
by Chris Casconi
Replied by Chris Casconi on topic Re: K2-Tag Page not rendering OpenGraphtitle correctly
What is weird is that I do have menus created for all of these tags. Do I need to set a menu title somehow?
I will try option #2 to see where it gets me.
Thank you!
I will try option #2 to see where it gets me.
Thank you!
Please Log in or Create an account to join the conversation.
- Chris Casconi
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
10 years 10 months ago #121587
by Chris Casconi
Replied by Chris Casconi on topic Re: K2-Tag Page not rendering OpenGraphtitle correctly
I tried option 2 but that only gets rid of the "Displaying items by..."
Now what appears is just the tag name.
I'd like to make it the actual page title name.
Now what appears is just the tag name.
I'd like to make it the actual page title name.
Please Log in or Create an account to join the conversation.
- Yiota
- Visitor
10 years 10 months ago #121588
by Yiota
Replied by Yiota on topic Re: K2-Tag Page not rendering OpenGraphtitle correctly
OK. Since you have menu items for all your tags just open each one and through the Page Display Options enable the Show Page Heading and add a page title if you want it to be different.
Please Log in or Create an account to join the conversation.
- Chris Casconi
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
10 years 10 months ago #121589
by Chris Casconi
Replied by Chris Casconi on topic Re: K2-Tag Page not rendering OpenGraphtitle correctly
That worked! Thank you so much!
Any reason it doesn't pick up the title from sh404sef?
Any reason it doesn't pick up the title from sh404sef?
Please Log in or Create an account to join the conversation.
- Yiota
- Visitor
10 years 10 months ago #121590
by Yiota
Replied by Yiota on topic Re: K2-Tag Page not rendering OpenGraphtitle correctly
You are welcome :)
sh404sef handles the URLs mostly, as far as I know.
sh404sef handles the URLs mostly, as far as I know.
Please Log in or Create an account to join the conversation.
- Alfonso F. Moreno
- Offline
- Elite Member
Less
More
- Posts: 169
10 years 9 months ago #121591
by Alfonso F. Moreno
Replied by Alfonso F. Moreno on topic Re: K2-Tag Page not rendering OpenGraphtitle correctly
Maybe this will help too:
getk2.org/community/New-to-K2-Ask-here-first/171349-SEO-improvement-in-tag-pages#171349
getk2.org/community/New-to-K2-Ask-here-first/171349-SEO-improvement-in-tag-pages#171349
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- [SOLVED] K2-Tag Page not rendering OpenGraphtitle correctly