Support » Plugin: Schema & Structured Data for WP & AMP » Removing “articleBody” from WebPage

  • Resolved infinitnet

    (@infinitnet)


    WebPage schema automatically include Article schema. However, the Article schema doesn’t seem to be fully customizable (see: https://i.imgur.com/2ZvbOvv.png). In particular I’m looking for a way to get rid of articleBody because this isn’t really used by Google (https://developers.google.com/search/docs/data-types/article) and just results in duplicate content as far as the HTML source code goes. The rest of the Article schema output is fine. How can I adjust this in bulk without manually customizing the output for every single page/post?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Sanjeev Kumar

    (@sanjeevsetu)

    Thank you so much for the using our plugin.

    If you use Article or NewsArticle Schema than you can remove articleBody globally using modify schema something like this ( https://monosnap.com/direct/xRXkMBHDtX16GzpdYZLo6P8b78uegI ).

    For the WebPage, We have missed some properties in the dropdown. We will fix this in comming updates.

    Ref: https://github.com/ahmedkaludi/schema-and-structured-data-for-wp/issues/1147

    Thread Starter infinitnet

    (@infinitnet)

    Thanks @sanjeevsetu! I’ll wait for the next update then.

    Just one question: If I provide a blank input value for articleBody, is it actually going to remove that whole item or just use a blank value for that item’s value? Would be great to be able to get rid of it (just in case providing a blank value doesn’t do that automatically already – it really should).

    Cheers!

    Plugin Support Sanjeev Kumar

    (@sanjeevsetu)

    Currently it will just assign a blank value for that item and if any item has blank value google does not take that item in its testing tool. However, When We work on this ticket, We will remove the item completely.

    Thread Starter infinitnet

    (@infinitnet)

    That’s awesome, thank you for your quick responses and taking all my feedback seriously!

    Thread Starter infinitnet

    (@infinitnet)

    @sanjeevsetu I just realized articleBody field is missing from output customization for BlogPosting schema type as well, not just WebPage. Would be awesome if you could fix both to avoid that much dupe content inside the HTML body of a page. šŸ™‚

    Plugin Support Sanjeev Kumar

    (@sanjeevsetu)

    We have fixed it in BlogPosting as well. Please check and let us know

    Thread Starter infinitnet

    (@infinitnet)

    @sanjeevsetu Thank you, works for BlogPosting now!

    However, I just realized that the issue isn’t resolved yet for the property I initially mentioned in this ticket: “Article Body” is still missing in custom output options of WebPage.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Removing “articleBody” from WebPage’ is closed to new replies.