• Resolved tklaverstijn

    (@tklaverstijn)


    Hi,

    I’d like to use Yasr just for the review rich snippet to show up in Google. So the fact that a sentence is automatically added at the end of my post annoys me a bit, because otherwise the plugin works perfectly. Right now something like this gets added to my blogpost:

    Clynelish 1997/2011 from The Whiskyman reviewed by Thijs @ Words of Whisky on 18 September 2014 rated 3.6 on 5.0

    Is there a way to make this disappear permanently? I coulnd’t find anything in the settings.

    Thanks!

    https://www.ads-software.com/plugins/yet-another-stars-rating/

Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Contributor dudo

    (@dudo)

    you can add this css rule in yasr setting

    .yasr_schema {
        display: none;
    }

    However, if you care about SEO, this is not a good idea.
    Read here https://sites.google.com/site/webmasterhelpforum/en/faq-rich-snippets#display question #4

    Best,
    Dario

    Ok thanks.

    Could it be a good idea to change the color, to make the text disappear for readers ?

    Plugin Contributor dudo

    (@dudo)

    No, rich schema should be visible

    Ok thanks ??

    Plugin Contributor dudo

    (@dudo)

    You’re welcome ??

    Damn it…so there is no solution to remove this text permanently?

    Plugin Contributor dudo

    (@dudo)

    Yes it’s possible, but it will disable rich snippet:

    In the plugin dir, open file /lib/yasr-functions.php and on line 267 change this

    add_filter('the_content', 'yasr_add_schema');

    to this

    //add_filter('the_content', 'yasr_add_schema');

    Ah, that won’t work for me. Thanks for response, anyway.

    Plugin Contributor dudo

    (@dudo)

    it must work. Have you deleted your browser cache?
    And if you use a caching plugin, empty that cache too

    No, I meant I want to have a rich snippet. And if it don’t show up I won’t make any changes to remove this text.

    Doesn t matter of setting in wp-admin, try
    [yasr_visitor_votes] on post. I have call it on functions.php.
    It show on refresh if you have at least 1 vote.

    [yasr_visitor_votes_readonly] does not show it.

    yars-function 297, 357

    Hi,

    About this solution:
    `//add_filter(‘the_content’, ‘yasr_add_schema’);

    the problem would be when the plugin gets updated, that would be overwritten, wouldn’t it?

    Plugin Contributor dudo

    (@dudo)

    Hi dirital,
    thank you for using yasr!

    Yes, this is just a workaround, and it will be overwritten each time you update the plugin.

    Best,
    Dario

    Hi Dario,

    but if its possible to resize the font smaller ?
    And will be google display the richt snippet correct than ?

    Greetings Marcus

    Plugin Contributor dudo

    (@dudo)

    Yes, you can use a smaller font, just cutomize the css class mentionated above

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Remove sentence at the end of post’ is closed to new replies.