How to add js file to High-end theme

  • In Progress
    Posted in: Highend WP Theme  
  • Customer
    xenodennis
    November 10, 2015 at 3:31 am #64016

    Hi, i have a custom js file under HighendWP/Scripts/

    i add below codes in function.php:

    function wptuts_scripts_basic(){
    wp_register_script(‘customjs’,’urltomyjsfile’,array(‘jquery’));
    wp_enqueue_script(‘customjs’);
    }
    add_action(‘wp_enqueue_scripts’,’wptuts_scripts_basic’);

    But i can’t find the script showing on my home page, could you pls kindly advise? is there a confliction here?

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.