Scripts not loading through function Method

I am trying to load CSS and Javscripts through the functions. CSS are loading, but dont know what mistake has been done that javascripts and Jquery are not loading through the functions method.

I tried by directly loading scripts through the head section and it worked, but by functions method it is not loading. I am producing the excerpts of the code here →

  /* Register scripts. */
        wp_register_script( 'custom', JS . '/jquery-3.1.1.js');
                wp_register_script( 'custom', JS . '/custom.js'); 

Do you think that there is any mistake commited in this also →

/*-------------------------------------------*/
/* 1. CONSTANTS */
/*-------------------------------------------*/
define( 'THEMEROOT', get_stylesheet_directory_uri() );
define( 'IMAGES', THEMEROOT . '/img' );
define( 'JS', THEMEROOT . '/js' );

The live WP site link can be found here for any direct troubleshooting.

Try to click the hamburger menu and then the scripts will not load thats why the hamburger menu is not animating.

Read more here: Scripts not loading through function Method

Leave a Reply

Your email address will not be published. Required fields are marked *