Removing the full Schema
There have a filter fl_post_grid_disable_schema in BB Post Module. You can easily disable the schema via this simple PHP code.
1 |
add_filter( 'fl_post_grid_disable_schema', '__return_true' ); |
Removing only Author Schema
1 |
add_filter( 'fl_schema_meta_author', '__return_null' ); |
Removing Publisher Schema
1 |
add_filter( 'fl_schema_meta_publisher', '__return_null' ); |
Removing Publish Date Schema
1 |
add_filter( 'fl_schema_meta_general', '__return_null' ); |
Removing Comments Schema
1 |
add_filter( 'fl_schema_meta_comments', '__return_null' ); |
Removing Featured Image Schema
1 |
add_filter( 'fl_schema_meta_thumbnail', '__return_null' ); |
Where Shall I Place The Code?
In the WordPress Dashboard, go to Appearance > Theme Editor and open the functions.php file of your child theme. Then add the following code at the end. Alternatively, you can use code snippets plugin for adding custom code.
Abby Buzon says
THANK YOU PAUL! Goodness gracious – I had to have spent at least an hour trying to find all the filters to remove all the unneeded Schema.
I just sent a message to BB to add this to their KB docs, because their one filter listed doesn’t remove the CreativeWork schema.
add_filter( ‘fl_theme_disable_schema’, ‘__return_true’ );
Speaking of CreativeWork schema – that’s what I was Googling: “how to remove CreativeWork schema”, because that’s how it’s listed in the Structured Data Testing Tool. How I found your article I’m not sure because it doesn’t actually say CreativeWork anywhere – just a suggestion for SEO – you might want to mention it.
I think I had given up searching for how to remove CreativeWork and was just trying to, at minimum, remove the author linking that displays your username (which seems like a terrible idea, right?)
Thank you so again for publishing this!