Stars not showing, radio buttons show instead

Front Support Plugins Support WP Rich Snippets Plugin Stars not showing, radio buttons show instead

This topic contains 3 replies, has 2 voices, and was last updated by  Hesham 2 years, 11 months ago.

  • Author
  • #6698

    In the user review (comments section) the review stars were not showing but instead radios buttons were.

    I found that the issue is that you are en-queueing your scripts (colorbox etc) with a priority of 5, so if a theme enqueues jQuery with default priority (10) it will generate a JavaScript/jQuery error and not load the scripts.

    This can be fixed very easily by adding jQuery as a dependency when registering the scripts:


    line 39 approx.

    // register the script
    wp_register_script( 'wprs-jquery-rating-pack-script',	WPRS_JS_URL.'user-rating/jquery.rating.pack.js', array('jquery') );
    wp_register_script( 'wprs-jquery-custom-script',		WPRS_JS_URL.'user-rating/custom.js', array('jquery') );
    wp_register_script( 'wprs-colorbox',					WPRS_JS_URL.'colorbox/jquery.colorbox-min.js', array('jquery') );

    Is there a way to do Pull requests? Or can you add this as a fix in the next version please?

    Edit: this seems to have been previously reported a while back

  • #6699


    Thanks for the suggestion Dean, I’ve added this to the plugin for the next update.

  • #6717


  • #6730


    No problem!

    Will try to release the new update soon.

The forum ‘WP Rich Snippets Plugin’ is closed to new topics and replies.