• Resolved paulmist

    (@paulmist)


    For each individual article in the list view, there’s some schema being generated and displayed. How can I avoid this?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Gustavo Bordoni

    (@bordoni)

    Hi @paulmist,

    I am assuming you are talking about the JSON-LD schema, if so the following code would allow you disable it, but the hook tribe_events_views_v2_view_json_ld_markup will allow you to make changes to what is displayed.

    
    add_filter( 'tribe_events_views_v2_view_json_ld_markup', static function( $json_ld_data, $view_slug, $view ) {
        if ( 'list' !== $view_slug ) {
            return $json_ld_data;
        }
    
        // On List return empty array.
        return [];
    }, 15, 3 );
    

    If you were not talking about JSON LD please let me know and I will gladly help you disable that.

    best Regards,

    Thread Starter paulmist

    (@paulmist)

    Hi @bordoni

    Thanks for replying.

    Unfortunately, that didn’t help. I’m guessing because we have legacy templates in place.

    If you look at the link I included you can see that each listing item has…

    { "@context": "https://schema.org", "@type": "Event", "name": "ISC West", "description":…

    This is what we’re trying to remove.

    Plugin Author Gustavo Bordoni

    (@bordoni)

    Hi @paulmist,

    Unfortunately you are using our Legacy views which we do not provide support anymore.

    But the filter you are looking for is: tribe_json_ld_markup

    https://evnt.is/v1-removal

    Please take a look at the article above about why we are no longer supporting that version of our codebase.

    If you switch to the Updated Views and the problem continues, I would love to to try to help you get to the bottom of the problem

    Best Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Schema showing in list view’ is closed to new replies.