Coexistence of Custom Schema Markup and Yoast Schemas
-
On my website, I want to implement custom schema markup for each page.
I’ve tried doing this by customizing Yoast’s native function through the addition of “graph pieces”, but every time I use this function in the functions.php file, I receive a fatal error and have to restore the functions file manually.
add_filter( 'wpseo_schema_graph_pieces', 'add_custom_schema_piece', 11, 2 );
So, I’ve prepared custom and independent schemas from Yoast, which give me more flexibility and less dependency.
However, on some pages, the presence of two schemas might seem redundant.
I would like to know from you:
- If you have any information or advice for the fatal error I receive every time I use
add_filter( 'wpseo_schema_graph_pieces', 'add_custom_schema_piece', 11, 2 );
- If I want to use custom schemas, whether the coexistence with Yoast’s schemas is or can be harmful.
- If it’s possible to selectively disable Yoast’s schemas, only for some pages (I am speaking only about schemas, not breadcrumbs).
Thank you for the support!
- If you have any information or advice for the fatal error I receive every time I use
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Coexistence of Custom Schema Markup and Yoast Schemas’ is closed to new replies.