Hello,
We apologize for the issue you are facing with your landing pages being assigned as articles instead of WebPage schema. To address this, you can use a custom snippet to modify the schema type for your landing pages.
Here’s a basic example of how you can change the schema type to WebPage
for specific pages:
add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
if ( is_page( 'your-landing-page-slug' ) ) { // Replace with your landing page slug
$data['@type'] = 'WebPage';
}
return $data;
}, 99, 2);
Make sure to replace 'your-landing-page-slug'
with the actual slug of your landing page. You can add this code to your theme’s functions.php
file or a custom plugin.
If you have multiple landing pages, you can adjust the condition in the if
statement accordingly.
For more detailed guidance on adding custom snippets, you can refer to our documentation on WordPress Hooks, Actions, and Filters.
If you need further assistance or a more comprehensive setup, we recommend considering our professional setup service available at Rank Math Services. This service requires a PRO subscription and ensures that your plugin setup adheres to the latest SEO standards.
Thank you for raising this concern! If you have any more questions or need additional help, feel free to reply to this ticket.
Sources:
Remove Organization Schema from Your Website » Rank Math
This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.
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.