• Hi

    I’m running an rtl site with oceanwp theme. the star rating is showing but there’s an issue.

    the stars are ordered from right to left (1 star rating is the first star on the right). although rtl is basically right to left, this direction is unnatural for star ratings and we follow the ltr (left-to-right) format for stars (1 star rating is the first star on the left).

    How can I fix this?

    thank you

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

    (@dudo)

    Hello!

    Well, is the first time that I heard about this; it is possible but it require some coding changes and you need to do this every tine the plugin is updated.

    Is this ok for you?

    Thread Starter Ali

    (@golali)

    Hi!

    obviously not my first choice but seems to be the only option, so sure! I’d love that!
    Kindly share the snippets and I’l take care of that.

    thank you in advance

    Plugin Contributor dudo

    (@dudo)

    What I suggest to do is this;

    With ftp, delete the file /wp-content/plugins/yet-another-stars-rating/includes/js/rater-js-rtl.js
    Then, download the file rater-js.js and upload it with the name rater-js-rtl.js .

    Later, in file /wp-content/plugins/yet-another-stars-rating/includes/yasr-includes-functions.php comment out these lines

    add_action('yasr_add_front_script_css', 'yasr_rtl_support');
    add_action('yasr_add_admin_scripts_end', 'yasr_rtl_support');

    Let me know!

    Thread Starter Ali

    (@golali)

    I’d done the first half of this tutorial but it didn’t turn out great, so it seems like the second half of your tutorial was what I was missing. I’ll try this and get back to you.

    Thanks @dudo

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘RTL issue’ is closed to new replies.