Rich Snippets: Recipes

#4020
  • Resolved Leonardo De Souza
    Rank Math free

    Hi!

    I’m using Rank Math e setup rich snipets in my blog.

    And the thing is i’m having problem with my category page because that page is loading/showing script type=”application/ld+json” even with my configuration is marked to no snippets.

    What i have to do for no listing rich snippets codes?

    Thanks,

    Leonardo

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I have been able to reproduce this issue on my end but you can add the following code to your theme’s functions.php file to remove the rich snippet data from the category pages:

    /**
     * Code to remove json+ld data
     * 
     */
    add_action( 'rank_math/head', function() {
    	global $wp_filter;
    	
    	if (is_category()) {
    		unset( $wp_filter["rank_math/json_ld"] );
    	}
    });

    I hope this info helps. Thank you.

    ​​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Rich Snippets: Recipes’ is closed to new replies.