WordPress.org

Ready to get started?Download WordPress

Forums

kk Star Ratings
Script to footer (2 posts)

  1. JibsouX
    Member
    Posted 1 year ago #

    Hello thanks for the plugin but i wonder how i put the script js.js to the footer ? if so kk star rating will work or not ?

    Thanks

    http://wordpress.org/extend/plugins/kk-star-ratings/

  2. JibsouX
    Member
    Posted 1 year ago #

    this is the way to do it in your file index.php :
    Modification of

    // Scripts
    add_action('wp_head', array($kkStarRatings_obj, 'js'));
    add_action('wp_enqueue_scripts', array($kkStarRatings_obj, 'css'));
    add_action('wp_head', array($kkStarRatings_obj, 'css_custom'));
    add_action('admin_init', array($kkStarRatings_obj, 'admin_scripts'));

    to :

    // Scripts
    add_action('wp_footer', array($kkStarRatings_obj, 'js'));
    add_action('wp_enqueue_scripts', array($kkStarRatings_obj, 'css'));
    add_action('wp_head', array($kkStarRatings_obj, 'css_custom'));
    add_action('admin_init', array($kkStarRatings_obj, 'admin_scripts'));

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.