Able to translate "Editor's Rating:" in Review Snippet?

#10287
  • Resolved Kevin
    Rank Math free

    Hi there,
    I have a German website. Now I want the star-rating to show up in the serps but I wonder if I could change (or remove) the text above the stars. At the moment it says “Editor’s Rating”.

    How to translate or remove this?
    Can I translate / remove it or will the stars not show up in serps then?

    Ty for your help!

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

    Thank you for contacting Rank Math today.

    I would suggest that you translate this string with the following plugin: https://mythemeshop.com/plugins/my-wp-translate/ to avoid modifying this HTML.
    Alternatively, you can also add the following filter on your theme’s functions.php file to change this text:

    /**
     * Filter to change review display location
     *
     * @param string $text Default Editor's choice.
     */
    add_filter( 'rank_math/review/text', function( $text ) {
            $text = "My Custom Editor text";
    	return $text;
    });

    Replace My Custom Editor text with your translated text.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Kevin
    Rank Math free

    Thank you! This works like a charm.

    One more question: these stars will be shown in Google / Serps, right?
    Can I do a 4.5 stars rating as well or only full numbers?

    • This reply was modified 4 years, 8 months ago by Kevin.

    Hi Kevin,

    Thanks for the follow up.

    I am glad that this works for you 🙂
    Yes the review + stars will shown on the SERPs but Gutenberg validation logic does not currently allow you to add decimal values but if you are using the classic editor, you can easily add decimal values to the rating.

    I hope this info helps. Thank you.

    Kevin
    Rank Math free

    I added the star rating to one of my pages. But I can’t find any structured data code in the soruce code of the website:

    This is the part where it shows the stars:

    		<strong>Wertung</strong><br />
    
    			<span class="rank-math-total">5</span>
    
    			<div class="rank-math-review-star">
    
    				<div class="rank-math-review-result-wrapper">
    
    					<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i>
    					<div class="rank-math-review-result" style="width:100%;">
    						<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i>					</div>
    
    				</div>
    
    			</div>
    

    What is wrong?

    From my understanding correct structured data code should more look like this:

    <span class="rating-desc" itemscope="" itemtype="http://schema.org/Product">
     <span itemprop="name">Ian Brodie</span>
     <span itemprop="aggregateRating" itemscope="" itemtype="http://schema.org/AggregateRating"> Rated <span itemprop="ratingValue">5</span> / 5 based on <span itemprop="reviewCount">5</span> reviews. | <a class="ratings" href="https://www.ianbrodie.com/review">Review Me</a> </span>
    </span>
    • This reply was modified 4 years, 8 months ago by Kevin.

    Hello,

    Thanks for the follow up.

    The preview of your review is added in accordance with the Google guidelines which suggest that a webmaster should show the schema to the users as well as to the bots.

    If you show it to just the bots, you run the risk of getting removed from the rich snippets program. That is the reason it is being added to the frontend.

    Although we do not recommend removing it from the frontend – Rank Math allows you to take full control of your SEO. You can follow this link to remove the Review Display from the frontend.

    The schema data is also added as json-ld on the page source as shown below:

    <script type="application/ld+json">
    {
        "@context": "http://schema.org",
        "@type": "Review",
        "itemReviewed": {
            "@type": "Thing",
            "name": "Test Review Post"
        },
        "reviewRating": {
            "@type": "Rating",
            "ratingValue": 0,
            "bestRating": 5
        },
        "author": {
            "@type": "Person",
            "name": "admin"
        },
        "reviewBody": ""
    }
    </script>
    

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

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

The ticket ‘Able to translate "Editor's Rating:" in Review Snippet?’ is closed to new replies.