Webpage / WebSite schema instead of Article

#1061938
  • Resolved James Elmer
    Rank Math free

    I have found out more recently about Schema and I’ve noticed that ‘Article’ seems to be the default around the site.
    For my pages that aren’t Blogs etc, i don’t want to use the Article Schema as i’ve heard that not ideal to do for pages that aren’t blog posts etc.

    I have seen here: https://rankmath.com/kb/rich-snippets/ that it says WebPage is the default schema applied but that doesn’t seem to work for me, and I don’t see it even as a schema option?

    How can i implement this only my site using the rankmath plugin? Or what is reccomended?

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

    We apologize for the issue you are facing with the Schema settings on your site. It’s great to hear that you’re exploring Schema and its importance for your website.

    To implement the WebPage Schema instead of the Article Schema for your non-blog pages using the Rank Math plugin, you can follow these steps:

    1. Access Rank Math Settings: Go to your WordPress dashboard and navigate to Rank Math SEO → Titles & Meta.
      Rank Math Titles And Meta Options

    2. Select the Appropriate Post Type: Click on the Pages option from the left tab menu (or any custom post type you want to configure).
      Posts Option In Title And Meta Options

    3. Set Default Schema Type: Scroll down to find the Schema Type option. Here, you should be able to select the default Schema type for your pages. If you want to use WebPage Schema, select it from the drop-down menu.
      Select Default Schema Type For Pages

    4. Save Changes: After selecting the WebPage Schema, make sure to save your settings.

    If you do not see the WebPage Schema as an option, it may be due to a configuration issue or a plugin conflict. In that case, we recommend checking if the Schema module is enabled in Rank Math SEO → Dashboard under the Modules tab.
    Enabling Rank Math Schema (Structured Data)

    For more detailed guidance, you can refer to our comprehensive guide on Schema Markup.

    If you continue to experience issues or need further assistance, we recommend replying to this ticket, and a human agent from our support team will assist you further. Please include your site URL in your reply for more specific help.

    Thank you for raising this concern! We’re here to help you get it sorted out.

    Sources:
    Configuring “Schema Markup” in Rank Math for Rich Snippets » Rank Math
    What is WebSite Schema and How Do You Implement It? » Rank Math

    WebPage is not in the dropdown menu for me. I don’t think this is a conflict as in official tutorials from rankmath, it is also not there.

    I have seen people saying that webpage is applied automatically, but that seems to not be the case when i inspect page source or use a schema checker tool.

    How do I get webpage to be applied automatically ?

    Hello,

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

    The WebPage Schema is added automatically to all the pages by our plugin if there is a predefined Schema set on them, and it uses the information from the page to do it, but you will not see it in the schema builder on the backend.

    You should be able to see it when you test it out in the Rich Result Test or schema.org validator.

    https://search.google.com/test/rich-results
    https://validator.schema.org/?hl=en-US

    If you don’t see it, please share the affected URL here so we can take a closer look.

    Please note that sometimes, the WebPage, WebSite, and other default Schemas of our plugin are nested under the Article Schema as properties.

    Looking forward to helping you.

    Hi,
    Thanks for the reply

    I am confused about what is meant by “Added automatically” or elsewhere it is referred to as “Webpage is the default setting” – Because there is no setting for “default schema” in the settings. And in the drop down, WebPage, is not a schema option. And if I remove the Schema, then it completely removes it and nothing is added there at all.

    It seems the only option is to have one of the dropdown items where Webpage is not an option. Or have no Schema at all. Under what settings is the Webpage schema applied automatically? The default seems to be Article

    I have tried all of this whilst using the Schema.org markup verification tool – none of the options seem to give me WebPage

    Hello,

    By default, the WebPage Schema should be applied to the whole site with the information for that specific page. However, to add the WebPage Schema, you must have any other Schema type applied to the pages. If there is no Schema, then our plugin will not add the default Schemas to the pages.

    If you only want the WebPage Schema for the pages, 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.

    Hi Ike,

    Thanks for your reply. Let me just double check.. If I have understood correctly? WebPage is applied automatically to all pages and post types, but only if you already have another random schema type applied to it? And the only way to apply only the WebPage schema is to pay for the PRO version, so you can enable custom Schema types?

    If I have understood that correctly, isn’t that against Google’s best practice for Schema?(for the free version), since you have to apply an unrelated schema to a page in order to even get a normal Schema type.

    So for normal about pages, homepage, landing pages etc, the closest thing is probably the ‘Article’ schema. So, Rank Math is suggesting and only giving the option for free to you to apply an incorrect Schema Type to a page?

    With Yoast SEO, for example, you can just set the schema type to WebPage in the drop-down for normal pages

    That seems very incorrect that RankMath would violate Google’s best practice by doing this, so what have I misunderstood?

    Thanks,
    -James

    Hello,

    An alternative is to add/modify the following snippet to your site:

    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 the filter code still needs modification from your end to ensure it gets the correct 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 Ike,

    Thanks for getting back to me. But could you not ignore my question(s), and could you confirm with me that what I have said is correct? That Rank Math is going against Google’s best practice and abuse policy of applying the correct Schema type for a page. It seems that the only way you can correctly apply schema is by paying for custom schema? Or through more complex methods of adding manual PHP code?

    That seems very strange of Rank Math to do something like that, so I’m wondering if I have misunderstood? All that would need fixing is to add the WebPage Schema as an item in the Schema dropdown menu for page/post types

    Let me know. Thanks,
    -James

    Hello,

    The WebPage Schema is indeed added automatically by our plugin when other Schema types are used, but this isn’t just a random schema. By default, we added the Article schema for pages because that is the most generic schema you can use to describe the content, which is also perfect alongside the WebPage schema.

    However, we understand that this may not always meet every use case, especially when you only want to apply the WebPage Schema alone.

    Currently, adding only the WebPage Schema via the UI is available through the Custom Schema feature in the PRO version or by using a custom code snippet.

    We do appreciate your feedback. This isn’t against Google’s best practices, but if this is something we can add to the list of pre-made schemas in the schema builder, we will let you know.

    Hello,

    We’ve shared your suggestion with our development team for review. We’re always working to improve the plugin based on user input like yours.

    If you have further questions or ideas, feel free to let us know.

    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 10 replies - 1 through 10 (of 10 total)

The ticket ‘Webpage / WebSite schema instead of Article’ is closed to new replies.