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

    (@dudo)

    Hello ASMRTingles, thank you for using yasr:

    Can you please try to do this:
    in the plugin directory, open file lib/yasr-shortcode-functions.php and on line 335 change this

    return $shortcode_html;

    with this:

    if (is_singular()) {
    
                return $shortcode_html;
    
            }
    
            else {
    
                echo $shortcode_html;
    
            }

    Let me know!

    Best,
    Dario

    I got also same problem, it worked. but in my single post it display 3 results of stars

    Plugin Contributor dudo

    (@dudo)

    I lanztuss12, you maybe didn’t see the update to the post I did just a couple o mins ago:

    try to replace with this instead of the single echo

    if (is_singular()) {
    
                return $shortcode_html;
    
            }
    
            else {
    
                echo $shortcode_html;
    
            }

    Thanks Dario! also do we have an option wherein i can put the rating wherever i want?
    my current is archive page is:
    Thumbnail Picture
    Title
    RATING
    paragraph

    I want to have:
    Thumbnail
    Rating
    Title
    Paragraph

    Thread Starter ASMRTingles

    (@asmrtingles)

    Thank you, it’s displaying the stars now, but it seems to be broken in the slider on the homepage. It’s being displayed above the text.

    Plugin Contributor dudo

    (@dudo)

    @lamztuss:Yasr can be put only inside the post or page, so if you wish to insert it in another position, you’ve to edit your template and manually place it.

    @asmrtingles: uhm…I think the only way to making this work is to insert the shortcode into your theme (I suggest using a child theme)

    Best,
    Dario

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Stars not showing up on front page and in categories’ is closed to new replies.