Keyword

[SOLVED] K2-Tag Page not rendering OpenGraphtitle correctly

  • Chris Casconi
  • Chris Casconi's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago #121584 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?

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #121585 by Yiota
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 ;)

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

  • Chris Casconi
  • Chris Casconi's Avatar Topic Author
  • Offline
  • New Member
More
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!

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

  • Chris Casconi
  • Chris Casconi's Avatar Topic Author
  • Offline
  • New Member
More
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.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #121588 by Yiota
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
  • Chris Casconi's Avatar Topic Author
  • Offline
  • New Member
More
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?

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #121590 by Yiota
You are welcome :)

sh404sef handles the URLs mostly, as far as I know.

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

  • Alfonso F. Moreno
  • Alfonso F. Moreno's Avatar
  • Offline
  • Elite Member
More
10 years 9 months ago #121591 by Alfonso F. Moreno

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


Powered by Kunena Forum