• We are having an issue where we are using ajax to display search results for a recipe feed but the ‘Star rating’ disappears when the search results are filtered. The method we are using is a shortcode in our recipe loop.
    echo do_shortcode(‘[yasr_visitor_votes size=”small” readonly=”yes” ]’);

    Is there a way to rerun the shortcode after an ajax call?

    Any assistance would be appreciated.

    • This topic was modified 3 years, 8 months ago by cathyx.
Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor dudo

    (@dudo)

    Hi!

    This is incredible: I’m working to add support on this just right now ??
    This should be available in the next version.

    Best,
    Dario

    Thread Starter cathyx

    (@cathyx)

    Hey,

    can you perhaps tell me when the next version will be released?

    Plugin Contributor dudo

    (@dudo)

    Can you please try to download this file https://gist.github.com/Dudo1985/4f23d28cb20f54eb59d10333474b1f8c and upload it in wp-content/plugins/yet-another-stars-rating/includes/js/src overwriting the existing one and let me know if works?

    Thanks

    Thread Starter cathyx

    (@cathyx)

    Thank you, I replace the file with the new one in this directory “wp-content/plugins/yet-another-stars-rating/includes/js/src” but sadly it didn’t work.

    Plugin Contributor dudo

    (@dudo)

    Do you have a link so I can test?

    Thread Starter cathyx

    (@cathyx)

    Sure, can I send you a private message somehow? The site is password protected.

    • This reply was modified 3 years, 8 months ago by cathyx.
    Thread Starter cathyx

    (@cathyx)

    Sorry had to change my comment,is there a way to send you a message privately?

    Plugin Contributor dudo

    (@dudo)

    You can leave a comment in the website

    Thread Starter cathyx

    (@cathyx)

    I’ve disabled the password for today. Here you go: https://staging.marmite.flywheelsites.com/rezepte/

    Can you please remove this once you’re done

    • This reply was modified 3 years, 8 months ago by cathyx.
    • This reply was modified 3 years, 8 months ago by cathyx.
    Plugin Contributor dudo

    (@dudo)

    Can you please remove this once you’re done

    unfortunately I can’t because I’m not a moderator.

    This is turning out to be more difficult than expected, I need to first release the next version (2.6.3) before the end of the week, then I will work on this (hope to release 2.6.4 for the end of the month)

    Best,
    Dario

    Thread Starter cathyx

    (@cathyx)

    Hi Dario,

    Ah ok, thanks for taking a look. That would be a great help, will you let me know once this has been fixed?

    Just one other thing to note, not sure if you already picked up on this.
    On Firefox the star images didn’t show and it had something to do with how Firefox sees background images. I fixed the issue by using “background-image” instead of just “background”. Hope it makes sense ??

    Thanks,

    Is there any solution on this now?
    We have the same issue! Filtering with ajax does not load any stars.

    When you load the page first time.. the stars are visible.
    If you filter the results (ajax) the stars will disappear.

    If you refresh the page again (with filter) the stars are visible.

    Plugin Contributor dudo

    (@dudo)

    Hello duke, it depends on how the ajax call is done.

    If it is done with jQuery, we can easily hook it with the ajaxComplete handler.
    Can you post a link?

    Best,
    Dario

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Rating Stars disappear after ajax call’ is closed to new replies.