Tagged: schema markup errors, single-event.php
-
AuthorPosts
-
February 14, 2019 at 8:10 am #1066833
Hi guys!
I went to the Events Calendar plugin first with this issue and here’s what I got (see below). Help!!
Original issue:
I am getting an error on Search Console where it states that location is required and missing from the markup:
<div id=”tribe-events-content” class=”tribe-events-single vevent hentry”>
I tried to override with the Data Highlighter but it does not work as the template is modified.
You also get a bunch of warnings (you can see them when you run this page by the structured markup tool: https://staging-conversionsciencesdev.kinsta.cloud/event/conversion-for-the-content-marketer/Here’s what I got from the Plugin’s thread:
“Enfold needs to update the single-event.php that they include in their theme. The vevent hentry needs to be removed. It is no longer needed since The Events Calendar now uses JSON-LD for markup. The Events Calendar moved away from the use of this method quite a while back, but Enfold has not updated their templates to follow the changes.”How do I fix this? Let me know if you need access to the staging site.
Thank you!!
Havi
February 15, 2019 at 12:05 am #1067230I forgot to add this issue as well. The pagination does not match and is overriden as well, so it creates broken canonical links and 404 pages.
Events Archive | Page 2 of 8 | Conversion Sciences
https://conversionsciences.com/events/list/?tribe_event_display=past&tribe_paged=2 Should be: https://conversionsciences.com/events/page/2/February 19, 2019 at 5:23 am #1068759Hi,
Thank you for using Enfold.
Edit the config-events-calendar > views > single-event.php file, look for this code around line 19:
<div id="tribe-events-content" class="tribe-events-single vevent hentry">
… and then replace it with:
<div id="tribe-events-content" class="tribe-events-single">
We removed the “vevent hentry” as suggested. Let us know if that changes anything.
Best regards,
IsmaelFebruary 20, 2019 at 2:46 am #1069239Hi Ismael!
The error is gone! I still have a 4 warnings related to the Offer (this one is not being picked up – it’s the currency field that is populated and I think it’s taking the Price or Cost of the event as an offer and thinking it has a start and an end date) If I add it manually, the priceCurrency warning clears:
“offers”:{“@type”:”Offer”,”price”:”275″,”priceCurrency”:”$”,”url”:”https://staging-conversionsciencesdev.kinsta.cloud/event/conversion-for-the-content-marketer/”}
Do you know how I could add it?
and the Performer, I really have no clue. I don’t even think their plugin offers such a field!
Quick question. To add it to the Child theme, Should I create all of the subfolders? Or just drop it together at the same folder level than the stylesheet and functions.php for the child theme?
Thank you so much!!
Havi
February 21, 2019 at 6:54 am #1069795Hi,
Thank you for using Enfold.
Have you tried asking the plugin authors? I’m not that familiar with the plugin’s JSON-LD schema feature, so additional info from them would help. If you want to override the event’s template in a child theme, remove the theme’s “tribe_events_template” filter and then add your own.
Related thread:
// https://kriesi.at/support/topic/how-to-override-enfold-mods-to-the-events-calendar-in-enfold-child/#post-1031054Best regards,
IsmaelFebruary 21, 2019 at 6:58 am #1069798Hi Ismael!
Don’t worry about the rest. I talked to my client and they are ok with the warnings. Meanwhile, I would love to add the fix you gave me to the child theme. Do I have to create folders inside of the child theme’s folder or can the single-event.php be dropped directly on the child theme folder? Or are you planning on adding the modification on the next build of Enfold?
The error did clear.
Best regards,
Havi
February 22, 2019 at 4:34 am #1070200Hi,
Thanks for the update.
You have to put the template file inside the “tribe-events/views” folder.
I’ll forward this to our developers for further consideration.Best regards,
IsmaelFebruary 25, 2019 at 5:05 am #1071131Thank you, Ismael!! I hope they do!
March 20, 2019 at 11:05 pm #1081082Thank you for adding it to the new release!! :)
March 22, 2019 at 8:50 am #1081758 -
AuthorPosts
- You must be logged in to reply to this topic.