• Resolved shaikhgulzar525

    (@shaikhgulzar525)


    I wanted to add JavaScript in wordpress booknetic plugin page via functions.php how i can do this

    what i have tried

    global $pagenow;
    if (( $pagenow == 'admin.php' ) && ($_GET['page'] == 'booknetic')) {
    <script type="text/javascript">
        console.log(window.location.href);
        jQuery(".fa-puzzle-piece").hide();
    </script>
    }

    its working but its not adding javascript inside the body of the page its adding to the top of the page outside the html document. so after this i tried this

    add_action( 'wp_head', 'add_test_init' );
    
    function add_test_init() {
       echo '<script type="text/javascript">
        console.log(window.location.href);
        jQuery(".fa-puzzle-piece").hide();
    </script> ';
    }

    and this works on other pages but not on plugin page that i want so is there any way to add javascript on booknetic plugin page?

    is there any hook to add my custome button next to boostore button?

    thank you

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    This question seems to be related to a different plugin. Please confirm the name of the plugin you have installed and submit the support message in the related support forum.

    Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘Add javascript in head to wordpress booknetic plugin page via functions.php’ is closed to new replies.