WebPage is not automatically added

#816500
  • Resolved Michael Jansse
    Rank Math free

    I have enabled the Rank Math SEO plugin, also enabled Local SEO and Structured Data in the dashboard. But when I go to a default page (not an article, not the homepage or any other custom post type), the only schema that is parsed in the code is the BreadCrumbList. Not the schema for WebPage.

    I’ve already tried several support tickets regarding this issue. You always say that this Structured Data is automatically added to every page, but I do not see that happening.
    I’ve also filled in every field in the Local SEO settings tab, but still no Structured Data WebPage is added to a default page.

    How can I fix this?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello,

    I apologize for the inconvenience you are facing with the WebPage Schema not being automatically added to your default pages despite enabling Rank Math SEO, Local SEO, and Structured Data modules.

    To ensure that the WebPage Schema is correctly added to your default pages, please follow these steps:

    1. Navigate to WordPress Dashboard → Rank Math SEO.
    2. Enable the Local SEO module and the Schema module if you haven’t already done so.
    3. Head to Rank Math SEO → Titles & Meta → Local SEO from your WordPress dashboard.
    4. In the Local SEO settings, make sure to fill out all the necessary fields accurately, including the Person or Company, Website Name, and Website Alternate Name settings.
    5. Click on the Save Changes button at the end of the configurations to ensure they are applied correctly.

    If after following these steps you still do not see the WebPage Schema being added to your default pages, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.

    Thank you for your understanding and patience.

    Sources:
    How to Add Profile Page Schema Markup? » Rank Math
    How to Set up ContactPage Schema » Rank Math
    Configuring “Schema Markup” in Rank Math » Rank Math
    How to Set up AboutPage Schema » Rank Math

    I’ve already tried the suggested solutions in the automated response. That did not solve the problems.

    Hello,

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

    Could you please share an affected URL with us so that we can check the issue further for you?

    Looking forward to helping you.

    Thank you.

    An example URL is:
    https://frame.bearwithus.nl/voorbeeld-pagina/

    I have disable the Schema Type in the Page post type in SEO TITLES & META options because I do not want the Article schema type on default pages.
    But as you can see, no WebPage Structured Data is present in the schema

    Hello,

    If you don’t apply any Schema type to a page, our plugin considers that you don’t want to add any Schema to that page and doesn’t apply the default Schema. If you don’t want to add any other Schema type(the ones available in the Schema Generator list) other than the default ones that our plugin adds, please follow these steps:
    1) Go to the page and go to the Schema Generator
    2) Select Custom Schema
    3) Simply put @type WebPage

    4) Hit save and update the page.

    Hope that helps. Let us know if you need any other assistance.

    Ok, but what happened to you guys saying: a WebPage schema is always added to pages by default? That’s not really true, is it?

    Because frankly: I do not want to add a custom Schema like your solution to every single page I create.

    To be honest: Yoast is indeed doing this by default. Isn’t there a better solution to add a WebPage schema to every page by default? Even if the settings says otherwise? Maybe by adding the schema Type Webpage to one of the schema’s you can choose from in the Page settings of Rank Math Seo?

    Hello,

    The WebPage schema will be added only, if there’s a dedicated schema type added to a certain page or post. This is the default behavior.

    To forcible add the WebPage schema you may refer to this filter code:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	if(empty($data)){
    		$webpageData = array(
    			"@type" => "WebPage",
    			"@id" => "https://YOURWEBSITE.COM/some-article/#webpage",
    			"url" => "https://YOURWEBSITE.COM/some-article/",
    			"name" => "Some Title",
    			"datePublished" => "2024-05-18T08:11:28+00:00",
    			"dateModified" => "2024-06-09T08:46:47+00:00",
    			"isPartOf" => array(
    					"@id" => "https://YOURWEBSITE.COM/some-article/#website"
    			),
    			"inLanguage" => "en-US"
    		);
    
    		$data['WebPage'] = $webpageData;
    	}
    	return $data;
    }, 99, 2);

    You may refer to this guide on how to add filters to your website: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Please note that filter code still needs changing from your end to ensure it gets the data from a specific post accordingly.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hi Jeremy,

    Thank you for your response on the filter. I’ve already found this one to manipulate the Structured Data array. So I will use this for now.

    But maybe for future updates on the plugin, will there ever be a better solution to add WebPage Structured Data to default pages? Like an option to select a WebPage schema in the settings?

    Hello,

    We have forwarded your suggestion to the developers as a feature request. If we decide to implement this in our plugin, we will be sure to let you know.

    Please do not hesitate to let us know if you need our assistance with anything else.

    Nope, that would be all. Thanks.

    Hello,

    We are glad to know that this issue has been resolved. Thank you for letting us know.

    This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.

    We appreciate your patience and cooperation throughout this process.

    Thank you for choosing Rank Math.

Viewing 11 replies - 1 through 11 (of 11 total)

The ticket ‘WebPage is not automatically added’ is closed to new replies.