fffkral
Member
Posted 10 months ago #
Greeting
I want to add a jquery tab to the my home.php template.
I put the code in home.php and .js & .css files in directory.
But this .js & .css files not load in page!
And Instead .js and .css content , the "not found page" loading.
<img src="http://www.imagetoo.com/thumbs/2013072407.png" border="0">
please guide me!
I think you need to look at how to add jquery (or any .js) to your theme correctly:
wp_enqueue_script
kevindng
Member
Posted 10 months ago #
add_action('wp_head','register_jquery',0);
function register_jquery(){
wp_enqueue_script('jquery');
}
fffkral
Member
Posted 9 months ago #
Thanks very much
Is possible to guide me with an example
In home.php, I put a jquery tab that need these
<script type='text/javascript' src='js/jquery.min.js'></script>
<script type="text/javascript" src="js/organictabs.jquery.js"></script>
And i put this .js files in theme js directory
I want to this files just load in home page
please write the code for one of this files for example,please
Again thank you