Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • I was also getting errors and the stars not working. Literally nothing was happening on hover or on click. Since it’s a required field, a user wouldn’t be able to submit anything if the stars don’t work! I suggest a fallback, since there are some users who don’t have JavaScript enabled 😉

    That wasn’t the intention of this comment though. I managed to solve it for me. The only thing I needed to do: Set the dependency of the JS from 'jquery' to the jquery files I was loading in, which in my case was 'underground-jquery'

    In conclusion, I suggest you implement another fallback here where you check for whether the WordPress jquery resource has been deregistered or not, and if so, then search for any other jquery files being enqueued by a theme.

    Hey,

    You can use do_shortcode('[RICH_REVIEWS_SNIPPET category=”page”][RICH_REVIEWS_FORM]'); to implement a shortcode in the code.

    do_shortcode() literally just parses the string you give it and then outputs the handler if there is one.

    See the codex:
    https://developer.wordpress.org/reference/functions/do_shortcode/

    Enjoy!
    Saborknight

Viewing 2 replies - 1 through 2 (of 2 total)