You have to insert the code in functions.php not in header.php.
<?php
function my_script(){
// put wp_enqueue_script here
?>
<?php wp_enqueue_script('bjqs-1.3', get_template_directory_uri().'/js/bjqs-1.3.js'); ?>
<?php wp_enqueue_script('bjqs-1.3.min', get_template_directory_uri().'/js/bjqs- 1.3.min.js'); ?>
<?php wp_enqueue_style('bjqs', get_template_directory_uri().'/bjqs.css'); ?>
<?php //wp_enqueue_style('demo', get_template_directory_uri().'/demo.css'); ?>
<?php wp_enqueue_script('jquery.secret-source.min', get_template_directory_uri().'/jquery.secret-source.min.js'); ?>
<?php
}
add_action('wp_enqueue_scripts', 'my_script');
?>
See here for detail, http://codex.wordpress.org/Function_Reference/wp_enqueue_script.
Related Posts:
- How to Change the Default Home Page for the WordPress Dashboard?
- Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”
- Cannot access admin panel
- Set Featured Image programmatically (in admin) with JavaScript?
- How can I include JavaScript that use jQuery on admin side
- Daily notices of failed login attempts for non-existent admin user
- Javascript not working in admin
- Setting Login with User Name and Password default option for Jetpack Admin Login
- I keep getting logged out in Firefox
- Error thrown. Cannot create references to/from string offsets
- Refreshing collections in the admin media manager
- wp.template() Not a function
- How to determine if an admin is logged in outside the loop
- wp-admin post.php JavaScript Links Not Working
- Unable to login, old site with previous developer gone
- Using shared SSL for login/admin
- Plugin admin panel JavaScript Broken
- wp-login behind nginx reverse-proxy inaccessible — bad redirect?
- Can’t access dashboard as administrator, login as any other level works though
- WordPress Admin Login Redirect Problem
- Activate Gallery Options in Media Uploader for Custom Usage
- Unable to Access WP Admin or Login buttons after Migration
- using rewrites to secure login page
- Client system for media review?
- WordPress administration Over SSL – To Force SSL Logins and SSL Admin Access
- Keep Logged in Users out of Admin Panel
- Unable to get to the admin panel
- I can’t access the login panel on my offline website
- Admin login not working
- admin_enqueue_scripts not rending JS file correctly
- Can’t login to my admin area
- Does deleting the table users prevent all logins?
- Locked out of WordPress website from wrong amount of login attempts
- current_user_can(‘administrator’) not working in custom login
- Why does Thickbox jQuery load on my site?
- Send admin to a different login than users?
- Add JavaScript in admin in custom plugin [duplicate]
- Want to know who is login Admin/User
- Remove iPhone detection on login page
- Any known plugins for master admin login to edit all on front end?
- Login to admin by frontend form?
- Error “Sorry, you are not allowed to access this page”
- I can’t access login page
- Admins loggin in to our wordpress site default to the admin page
- WordPress Admin Thickbox: Remove Margins/Padding
- WordPress login not working
- Login to Admin Dashboard Problem
- WordPress login process is hanging
- WordPress “Hide WP” Gives Me Error After Admin Login [closed]
- Enqueue script throws error in console
- Disable wp-admin log on lightbox overlay
- How to cancel redirection to admin side
- Can’t access my wp admin: captcha images invisible, gives me error message
- 2FA for admin login only, is it doable?
- Admin Ajax is returning 0
- Add a Separator to the Admin Menu?
- A similar hook as wp_head for the admin area
- Hide allow trackbacks/pingbacks
- Hide Admin menus per role in WordPress
- wordpress upload http error?
- How to find out if an wp-admin action edited a file?
- Text snippets shared across posts
- How to remove Gravatar from Username column
- Create a Meta Box in the Admin User Screen?
- Send email to Admin when user/member updates specific user/member data
- Limit Words in Category / Term Description – Admin Panel
- Change top level menu item to point to custom submenu item
- Change admin logout URL
- Default admin color scheme as “blue”
- Can user #1 (the initial user) be deleted without ill effect?
- Remove duplicate product link from WooCommerce Page Row Actions
- Admin toolbar shows up when not logged in
- Make the Status, Visibility, or Date fields opened by default in the Publish box
- Admin option sidebar count
- 500 internal server error on wp-admin only
- Admin Top Bar Not Showing On Front End
- How to verify nonces in bulk?
- Hide post title input for all roles except admin
- How to activate the dashboard
- avoiding the display of certain categories to certain user roles at content entry time
- WordPress Hacked 5.5 admin-ajax.php [closed]
- I installed WordPress locally now how do I login?
- Visual Editor only working for the admin user
- Control Users listed in Users List on dashboard
- Weird jquery problem when upgrade to WordPress 3.1
- Maintenance mode excluding site administrators
- Admin back end – get URL of file using file browser
- Admin Bar Acting Up
- Hide top admin panel for non admin and non editors
- how to refresh page after user logout with ‘wp_logout_url’?
- Get content of publish box
- Add button in admin columns
- Run filter if only it was run from specific admin page ( ‘upload_dir’ changed )
- How to create input page in WordPress admin panel?
- Unsure how to add simple checkboxes that write to a small table to admin
- Custom styles and scripts for specific admin screen
- Is it possible to get rid of admin new updates notifications?
- Why my vertical tab js code is refreshing the page continuously? [closed]
- Cant enter admin page with SSL
- Modify ‘the_content’ appearance in the admin area