Browser Tab shows 0 instead of event category title
-
The Event Categories will not show in the meta title within the head section and then therefore also not show in the tab of the browser. It shows a 0, then my separator and the page name, but the category title should show before the page name and the separator.
It does show it in the event page itself…. but not in any of the other taxonomies of the events: categorie, tag, and venue. And again it works fine in the Archive pages.<?php wp_head(); ?> seems to insert that information into the events page, right?
But it doesn’t seem to insert the title (most likely generated in the general-template.php).
I am using Divi Theme and have also Yoast as a Plugin. Without Yoast it displays nothing, the separator and the pagename
Is there a way to fix that?
Thanks in advance
The page I need help with: [log in to see the link]
-
The plugin doesn’t set the meta title, that would be the theme, and then maybe a plug-in (I believe Yoast’s SEO does have options for the meta title).
Does the title appear correctly if you disable Yoast or switch theme?
Hey Stephen,
with disabled Yoast the title in the browser tab is not showing either. The “0” (zero) is also not showing. It shows the separator that I had choosen and the blog name. (in my example it would be 0 – Evangelische Studenten….)Those two settings are done outside the Events Organiser.
Seemingly there is no content in the database field for the taxonomy titles. Yoast displays it as a zero, without Yoast it is displaying nothing.
Now I switched themes and the browser tab is showing the correct meta title.
http://preview1.virtualassistantforyou.de/veranstaltungsort/kellerkapelle-der-esg/
At this point I think: it must be theme related (Divi Theme from Elegant theme). Can you advice Elegant Theme what they have have to change for it to work?
But then I changed the setting how to treat templates back to standard, it was back to showing the “0” in the browser tab.
So, what could cause this?
Hi @penelopehathaway, did you ever find an answer to this. I see the same issue.
Hi @harvisa, unfortunately not. I would still need a solution though, I just dropped it due to time constraints and lower priority level. What combination of theme, pluggins do you have? Yoast as well?
Yes, Yoast, Shapely theme. Latest EO and WP.
Must be a snippet we can use to fix.OK, found the answer.
In Yoast under “Search Appearance” – > TaxonomiesSimply replace the %%event_tag%% with %%term_title%%
cheers
Thank you @harvsisa for posting this, I tried, but it doesn’t work on my end.
But I appreciate your note!
OK, this will be sure to work!! Just tested and bingo.
In your event, create a custom field at the bottom. (Add a custom field called say “eventtitle”). In this field put the Event Name that you want to Show on the Tab.
In Yoast under “Search Appearance” -> “Content Types” Put the following in the Field
%%cf_eventtitle%% %%sep%% %%sitename%%BINGO
🙂
- The topic ‘Browser Tab shows 0 instead of event category title’ is closed to new replies.