I don't know what I'm doing wrong... I'm using the starter timber theme... I'm trying unslider to work with my theme... indicated here is somehow a proof I did right in putting scripts from the function.php...
<script type='text/javascript' src='http://localhost/luxjeweler/wp-content/themes/timber-starter-theme-master/includes/js/jquery.js?ver=1'></script>
<script type='text/javascript' src='http://localhost/luxjeweler/wp-content/themes/timber-starter-theme-master/includes/resources/bootstrap/js/bootstrap.min.js?ver=1'></script>
<script type='text/javascript' src='http://localhost/luxjeweler/wp-content/themes/timber-starter-theme-master/includes/js/bootstrap-wp.js?ver=1'></script>
<script type='text/javascript' src='http://localhost/luxjeweler/wp-content/themes/timber-starter-theme-master/includes/js/skip-link-focus-fix.js?ver=1'></script>
<script type='text/javascript' src='http://localhost/luxjeweler/wp-content/themes/timber-starter-theme-master/includes/unislider/js/unslider-min.js?ver=1'></script>
<script type='text/javascript' src='http://localhost/luxjeweler/wp-content/themes/timber-starter-theme-master/includes/js/stickyFooter.js?ver=1'></script>
<script type='text/javascript' src='http://localhost/luxjeweler/wp-content/themes/timber-starter-theme-master/script.js?ver=1'></script>
<script type='text/javascript' src='http://localhost/luxjeweler/wp-includes/js/wp-embed.min.js?ver=4.4.2'></script>
but somehow jquery is not working... tried using the jquery enqueue default provided by wordpress and a custom enqueue but with no success... I tried testing by using this simple code:
$(document).ready(function(){
alert("test");
});
no response when I refresh the page...
Edit (15-02-16):
This is my enqueue function:
function luxjewels_scripts() {
// Import the necessary TK Bootstrap WP CSS additions
wp_enqueue_style( 'luxjewels-bootstrap-wp', get_template_directory_uri() . '/includes/css/bootstrap-wp.css', false, '1');
// load bootstrap css
wp_enqueue_style( 'luxjewels-bootstrap', get_template_directory_uri() . '/includes/resources/bootstrap/css/bootstrap.css', false, '1' );
// load Font Awesome css
wp_enqueue_style( 'luxjewels-font-awesome', get_template_directory_uri() . '/includes/css/font-awesome.min.css', false, '1' );
// load styles
wp_enqueue_style( 'luxjewels-style', get_stylesheet_uri() );
wp_enqueue_style( 'luxjewels-unslider', get_template_directory_uri() . '/includes/unslider/css/unslider.css', true, '1');
wp_enqueue_script( 'luxjewels-jquery', get_template_directory_uri() . '/includes/js/jquery.js', array(), '1', true );
// load bootstrap js
wp_enqueue_script('luxjewels-bootstrapjs', get_template_directory_uri().'/includes/resources/bootstrap/js/bootstrap.min.js', array(), '1', true);
// load bootstrap wp js
wp_enqueue_script( 'luxjewels-bootstrapwp', get_template_directory_uri() . '/includes/js/bootstrap-wp.js', array(), '1', true);
wp_enqueue_script( 'luxjewels-skip-link-focus-fix', get_template_directory_uri() . '/includes/js/skip-link-focus-fix.js', array(), '1', true );
// load Unslider js and css
wp_enqueue_style( 'luxjewels-unslider-dots', get_template_directory_uri() . '/includes/unslider/css/unslider-dots.css', false, '1', true);
wp_enqueue_script('luxjewels-unslider-min', get_template_directory_uri().'/includes/unslider/js/unslider-min.js', array(), '1', true);
// load stickyfooter js
wp_enqueue_script( 'luxjewels-stickyfooter', get_template_directory_uri() . '/includes/js/stickyFooter.js', array(), '1', true );
// load custom js
wp_enqueue_script( 'luxjewels-custom-script', get_template_directory_uri() . '/script.js', array(), '1', true );
}
add_action( 'wp_enqueue_scripts', 'luxjewels_scripts' );