Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #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 you

    or 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.
    #1027026

    Hey 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 Markup

    Best regards,
    Mike

    #1027049

    Hi 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 Enfold

    Thank you

    #1027064

    Hi,
    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 scope

    Best regards,
    Mike

    #1027073

    Hi 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.
    #1027083

    Hi,
    I will ask the rest of the team to take a look for a solution, thanks for your patience.

    Best regards,
    Mike

    #1027084

    Hi Mike, thank you very much !

    #1027097

    Hi,
    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,
    Mike

    #1027109

    Hi 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.

    #1027113

    Hi,
    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,
    Mike

    #1027119

    Hi Mike,
    i get a error with this code- i put at at the end of the function (Child-Theme)
    sorry :)

    #1027120

    ah there was a mistake in add_fillter (double l) – but Nevertheless is not working

    #1027121

    here 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 hcalender

    #1027145

    Hi,

    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,
    Mike

    #1027149

    Hi mike, i get a blank page with this code- sorry still not working

    #1027152

    Hi siteraum,

    Can you please check server log for error?

    Best regards,
    Victoria

    #1027157

    see privat please- i put the script at the end of my function

    #1027183

    Hi,
    Please include a admin login & FTP access in the Private Content area so we can examine it closer.

    Best regards,
    Mike

    #1027188

    i send you (privat),

    #1027228

    I 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 :))

    #1027230

    Hey,

    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!
    Yigit

    #1027233

    i 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“>

    #1028333

    Hi,

    You can override that template in your child theme. Have you tried that?

    Best regards,
    Ismael

    #1028344

    Hi 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 all

    #1029069

    Hi,

    Great! We’ll close the thread now. :)

    Best regards,
    Ismael

Viewing 25 posts - 1 through 25 (of 25 total)
  • The topic ‘Google Structured Data hcalender "Location" Error & The Event Calendar’ is closed to new replies.