• Resolved tosunkaya

    (@tosunkaya)


    I want to move kk star ratings’s javascript to footer:

    <script type=”text/javascript”>var bhittani_plugin_kksr_js = {“nonce”:”2a29e98257″,”grs”:true,”ajaxurl”:”https:\/\/tosunkaya.com\/wp-admin\/admin-ajax.php”,”func”:”kksr_ajax”,”msg”:”Makaleye Oy Verin”,”fuelspeed”:400,”thankyou”:”Te\u015fekk\u00fcrler :)”,”error_msg”:”Bir hata olu\u015ftu :(“,”tooltip”:”0″,”tooltips”:[{“tip”:”Be\u011fenmedim”,”color”:”#FF2600″},{“tip”:”\u0130yi De\u011fil”,”color”:”#FFA200″},{“tip”:”Eh i\u015fte”,”color”:”#EEFF00″},{“tip”:”\u0130yi”,”color”:”#AEFF00″},{“tip”:”S\u00fcper”,”color”:”#00F508″}]};</script>

    how to do this? It is automatically adding. Please help me.

    my website: https://tosunkaya.com

    https://www.ads-software.com/plugins/kk-star-ratings/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tosunkaya

    (@tosunkaya)

    Done. <script type=”text/javascript” defer src=”/wp-content/plugins/kk-star-ratings/js.min.js”></script> to footer and remove code from plugin index.php

    add_action(‘wp_enqueue_scripts’, array($kkStarRatings_obj, ‘js’));

    Thread Starter tosunkaya

    (@tosunkaya)

    Not worked with cache. How to add this code to footer??

    [Moderator Note: Please do not post in uppercase & shout at us. Post de-capped.]

    Thread Starter tosunkaya

    (@tosunkaya)

    Hi, I succeeded.

    Change this code in //SCRIPTS on index.php of plugin:

    add_action(‘wp_enqueue_scripts’, array($kkStarRatings_obj, ‘js’));

    to add_action(‘wp_footer‘, array($kkStarRatings_obj, ‘js’));

    it will work with cache.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Javascript To Footer How To?’ is closed to new replies.