this is the header section for enqueueing my scripts
<?php
wp_enqueue_script( 'menu' );
wp_enqueue_script('thumbnail');
?>
<?php wp_head(); ?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
<script type="text/javascript" src="<?php get_template_directory_uri();?>/js/menu-effect.js"></script>
<script type="text/javascript" src="<?php get_template_directory_uri();?>/js/thumbnail-effect.js"></script>
</head>
and this is functions.php section
function my_jsfile() {
wp_register_script( 'menu', get_template_directory_uri() . '/js/menu-effect.js', array() );
wp_register_script( 'thumbnail', get_template_directory_uri().'/js/thumbnail-effect.js', array() );
}
add_action( 'wp_enqueue_scripts', 'my_jsfile' );