WordPress.org

Ready to get started?Download WordPress

Forums

Jquery ui implementation (1 post)

  1. Kingpin200
    Member
    Posted 2 years ago #

    Hi,

    I have register the jquery ui in function file as i dont want it directly in header.php
    function my_jquery_ui() {
    // register your script location, dependencies and version
    wp_register_script('jquery-ui-1.8.16',
    get_template_directory_uri() . '/js/jquery-ui-1.8.16.js',
    array('jquery'),
    '1.8.16' );
    // enqueue the script
    wp_enqueue_script('jquery-ui-1.8.16');
    }
    add_action('wp_enqueue_scripts', 'my_jquery_ui');

    The jquery are registered as in firebug shows
    <script src="http://www.vmjconsulting.com/wordpress01/wp-content/themes/scania_infotech2/js/jquery-ui-1.8.16.js?ver=1.8.16" type="text/javascript">

    im trying to create tabs which you can see at

    http://www.vmjconsulting.com/wordpress01/testing/#tabs-1

    pleace adivce

Topic Closed

This topic has been closed to new replies.

About this Topic