• Resolved Mopade

    (@mopade)


    Hello,

    I use Rank Math (free version).

    My website is about tests and reviews of online banks.

    I only want to add five stars rating for Google’s rich snippets and my articles.

    I use the product version of schema.

    You can see in an example what I want to keep (in green) and what I dont want (in red) : https://ibb.co/phKd27p

    How to do that please ?

    Thank you,

    • This topic was modified 1 year, 4 months ago by Mopade.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Mopade

    (@mopade)

    Additionnal question : how to only hide “stock availability” in my article page if needed please ? Thank you

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @mopade,

    Thank you so much for reaching out to us and bringing your concern to our attention.

    Unfortunately, in our Schema block or Schema shortcode, we don’t have the option to selectively hide the element. Please refer to this guide:
    https://rankmath.com/kb/review-schema/

    However, if you wish to hide everything except the stars, you may apply this CSS to your website:
    #rank-math-rich-snippet-wrapper .rank-math-review-data p{ display: none !important; }

    Please refer to this guide on how you would add the CSS to your WordPress website:
    https://www.wpbeginner.com/plugins/how-to-easily-add-custom-css-to-your-wordpress-site/

    As for your inquiry about the “stock availability”, are you referring to the Schema structure or the display of the Schema data to the frontend? As for the Schema, you can enter Advanced Schema Editor (if you are using the PRO) version to remove the desired property.

    Hope that helps.

    Thread Starter Mopade

    (@mopade)

    Thank you for your detailled answer ??


    Regardind CSS code it works well but not entirely : https://ibb.co/MMKWRJM
    Is it possible to remove the little featured image and <h5> title ?


    If I put this CSS code I suppose it removes only what is displayed, not schema code for rich snippet ? If yes how to remove it also and just have the 5 stars please ?

    Regarding your question :

    “As for your inquiry about the “stock availability”, are you referring to the Schema structure or the display of the Schema data to the frontend? As for the Schema, you can enter Advanced Schema Editor”


    => I’m referring about both. The biggest problem (even if I would prefer to remove it) I think is that “InStock” in not translated in French for my website. It literraly appears like this “In Stock”

    Thank you

    • This reply was modified 1 year, 4 months ago by Mopade.
    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @mopade,

    Please use the following CSS to remove all the review data except the star ratings:

    #rank-math-rich-snippet-wrapper .rank-math-review-data p, .rank-math-title, .rank-math-review-image {
    display: none!important; }

    And the value of StockAvailability is added as per the Schema.org guidelines and the same value is outputted by the shortcode. That’s why it shows In Stock and isn’t translated. You can try using a plugin like Loco Translate to translate the strings of our plugin.

    Let us know how that goes. Looking forward to helping you.

    Thread Starter Mopade

    (@mopade)

    Hello,

    Perfect, I understand.

    Thank you again for your help ??

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @mopade,

    Glad that helped.

    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 long way.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Rankmath Free – Schema product only display “Five stars” element’ is closed to new replies.