-
AuthorPosts
-
October 24, 2018 at 5:01 am #1025781
Hi Enfold,
in Google Structured Data Testing Tool i get a error under hcalender -> Location. i use the free Plugin The Event Calender. They told me that this is a Problem from the Enfold theme.How can i Fix this,
thank youor is it possible to remove the hole micro markups from the enfold Theme? because i use only lson-ld
- This topic was modified 6 years ago by siteraum.
October 27, 2018 at 2:38 pm #1027026Hey siteraum,
Sorry for the late reply, please try one these plugins, which will allow you to use and edit the latest json Structured Data.
WPSSO Schema JSON-LD Markup
WP SEO Structured Data Schema
When using these plugins you will want to deactivate Enfold’s “generic HTML schema markup” at:
Enfold Theme Options > Layout Builder > Automated Schema.org HTML MarkupBest regards,
MikeOctober 27, 2018 at 3:18 pm #1027049Hi Mike, thanks for anwser,
i disable the automated Schema org ! :),
i only want to remove the generated Markup from the Enfold-Theme- the hcalendar ect is showing for events- you see it in the example. (privat) and i don`t need a json-ld plugin- – only want to disable the complete markups , and this markup for events is generated from EnfoldThank you
October 27, 2018 at 4:06 pm #1027064Hi,
I search the theme files and this markup is in these files:\enfold\config-events-calendar\event-mod-css-dynamic.php \enfold\config-events-calendar\views\single-event-no-mobile.php \enfold\config-events-calendar\views\single-event.php \enfold\config-templatebuilder\avia-shortcodes\magazine\magazine.php \enfold\config-bbpress\bbpress-mod.css
I’m not sure of the result if this code is removed, I recommend you keep copies of the files should removing the code cause errors.
Unfortunately this doesn’t look like a easy task, and is beyond our support scopeBest regards,
MikeOctober 27, 2018 at 4:17 pm #1027073Hi Mike,
in this file, \single-event.php, i have try to find the markup- but is cant find it, i work 4 days to find the Problem and how i can remove the markup from then Enfold single-event.php – also i try to find it in the helper-markup.php..
When i paste the orginal single-event.php from the Event Calendar inside the enfold single-event.php the markups are away- only the style is missing. So many Themes and sites who use the Enfold Theme has the Problem with the Schema markup (hcalendar-> missing Location) when they use Event. when i use twenty Theme for example – everything is fine- So there must be a solution to completly remove the markups from the Events- the other markups for Example Blog Page, are away when you disable the Automated Schema.org HTML Markup only for the Events is the Markup not correct….- This reply was modified 6 years ago by siteraum.
October 27, 2018 at 4:36 pm #1027083Hi,
I will ask the rest of the team to take a look for a solution, thanks for your patience.Best regards,
MikeOctober 27, 2018 at 4:37 pm #1027084Hi Mike, thank you very much !
October 27, 2018 at 5:03 pm #1027097Hi,
I believe we could be misinterpreting the error, because if you search the source code of the page there is no “hcalendar” on the page, nor is there one in the theme files.
I’m starting to think that the error is there is a missing “location” please see this example of hCalendar<span class="vevent"> <span class="summary">The microformats.org site was launched</span> on <span class="dtstart">2005-06-20</span> at the Supernova Conference in <span class="location">San Francisco, CA, USA</span>. </span>
notice how location has a input, but on your page it doesn’t:
<dd class="tribe-venue-location"> <address class="tribe-events-address">
do you have a empty field for venue?
Best regards,
MikeOctober 27, 2018 at 5:20 pm #1027109Hi Mike,
you can see (privat) on the Google Structure Data Tool, that we have 3 entries:
– henty (coming from enfold-> markup)
– Event (my custom json-ld)
– hacalendar (coming from Enfold -> markup)and when you click on Event, there you can see that the Location ist correct fetching so I have a Location on my site an with json-ld every things works correct, only the markup entries not working.
and the Location input on my side is under <dd class=”tribe-venue”> and the Adress is inside <dd class=”tribe-venue-location”>- so it cant be a missing Location on my site- becauce you can see on Google Structure Data that Event (json-ld) Location fetching is correct.
So the only thing is complete remove the Markups from Enfold- because when you deactivated it under Theme Oprions- not all Markups are deactived and i told before i make a test with another theme – and every thing is fine. So i think the only way to correct this to remvove complete the markups from Enfold.October 27, 2018 at 5:27 pm #1027113Hi,
The team replied with this function:add_fillter('avf_markup_helper_args','av_events_markup'); function av_events_markup($args){ if(tribe_is_event()){ $args = ""; } return $args; }
Please give it a try
Best regards,
MikeOctober 27, 2018 at 5:33 pm #1027119Hi Mike,
i get a error with this code- i put at at the end of the function (Child-Theme)
sorry :)October 27, 2018 at 5:36 pm #1027120ah there was a mistake in add_fillter (double l) – but Nevertheless is not working
October 27, 2018 at 5:38 pm #1027121here on the Demo from Enfold (used the Enfold Shema Markup)
https://search.google.com/structured-data/testing-tool?hl=de#url=https%3A%2F%2Fkriesi.at%2Fthemes%2Fenfold-church%2Fevent%2Fcorn-crop-festival%2F
you can see the same Error with hcalenderOctober 27, 2018 at 6:34 pm #1027145Hi,
Please remove that filter and try this one:
add_filter('avf_markup_helper_args','av_events_markup'); function av_events_markup($args){ if(single-tribe_events()){ $args = ""; } return $args; }
Best regards,
MikeOctober 27, 2018 at 6:39 pm #1027149Hi mike, i get a blank page with this code- sorry still not working
October 27, 2018 at 6:41 pm #1027152Hi siteraum,
Can you please check server log for error?
Best regards,
VictoriaOctober 27, 2018 at 6:44 pm #1027157see privat please- i put the script at the end of my function
October 27, 2018 at 8:05 pm #1027183Hi,
Please include a admin login & FTP access in the Private Content area so we can examine it closer.Best regards,
MikeOctober 27, 2018 at 8:11 pm #1027188i send you (privat),
October 28, 2018 at 10:29 am #1027228I think the Problem is here:
<div id=”tribe-events-content” class=”tribe-events-single vevent hentry“>
and wen i remove in the <div class vevent hentry (in single-event-php)- the markup up hcalendar is going away. So the css class vevent hentry give the automatic Markup- is that right?
(Sorry for my bad english :))October 28, 2018 at 11:04 am #1027230Hey,
There was a small typo in the code, i changed it to following
add_filter('avf_markup_helper_args','av_events_markup'); function av_events_markup($args){ if(tribe_is_event()){ $args = ""; } return $args; }
and now only “hentry” and “Event” show up on my end on Google structured data testing tool. Please review your website :)
Cheers!
YigitOctober 28, 2018 at 11:13 am #1027233i Yigit,
i paste your code- but still shows hcalender- !before i change this <div id=”tribe-events-content” class=”tribe-events-single “> you see in the post before- so the hcalander is not showing. And when i dont do any changes in single-event.php <div id=”tribe-events-content” class=”tribe-events-single vevent hentry“> and paste your code insight the function- it still show the hcalendar please have a look…the reason why hclander not show was that i change this <div id=”tribe-events-content” class=”tribe-events-single vevent hentry“> to this <div id=”tribe-events-content” class=”tribe-events-single“>
October 31, 2018 at 2:36 am #1028333Hi,
You can override that template in your child theme. Have you tried that?
Best regards,
IsmaelOctober 31, 2018 at 3:17 am #1028344Hi Ismael,
yes i have put the whole “config-events-calendar” folder int the child-theme and delete the “vevent hentry” entry in the css instruction <div id=”tribe-events-content” class=”tribe-events-single vevent hentry“> in the single-event.php. And now is working- the markup hcalandar is removed.
Thank you allNovember 2, 2018 at 8:50 am #1029069 -
AuthorPosts
- The topic ‘Google Structured Data hcalender "Location" Error & The Event Calendar’ is closed to new replies.