• Resolved gore.m

    (@gorem)


    Hello,
    I would like to ask you if is possible to attach my on page Schema (ImageGallery) to Rank Maths Article Schema?

    My HTML (it is hard coded gallery):

      <div itemscope itemtype="https://schema.org/ImageGallery">
    
    	<figure itemprop="associatedMedia" itemscope itemtype="https://schema.org/ImageObject">...

    Thanks you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Rank Math

    (@rankmath)

    Hello @gorem

    Thank you for contacting the support.

    You can use the following filter to change/extend the Schema data:
    https://rankmath.com/kb/filters-hooks-api-developer/#change-post-schema-data

    Just so you know, you are trying to attach ImageGallery to the Article Schema, which is not a valid field:
    https://schema.org/Article

    Hope that helps. If there’s anything else we can help you with, please let us know. We are here to assist.

    Thread Starter gore.m

    (@gorem)

    Thanks you for your reply.

    you are trying to attach ImageGallery to the Article Schema, which is not a valid field

    So it means that if I test my page with Google Schema test tool and result is 2 items (Article and ImageGallery) it is OK?
    I thought that if gallery is part of article, they could be one item.

    Thanks you

    Plugin Author Rank Math

    (@rankmath)

    Hello @gorem

    It is not recommended to use 2 Schema types on the same page. imageGallery is mostly used on the Product pages which helps Google to easily recognize the different images and utilize them for different types of results.

    So, based on the page’s content you can decide whether to use the Article Schema or the imageGallery Schema.

    Hope that helps further. Thank you.

    Thread Starter gore.m

    (@gorem)

    Thanks you @rankmath

    Plugin Author Rank Math

    (@rankmath)

    Hello @gorem

    Happy to help!

    If it isn’t too much to ask for – would you mind leaving us a review here?
    https://www.ads-software.com/support/plugin/seo-by-rank-math/reviews/#new-post

    It only takes a couple of minutes but helps us tremendously.

    It would mean so much to us and would go a really long way.

    Thank you.??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to attach on page Schema to Rank Maths Article Schema?’ is closed to new replies.