WordPress.org

Support

Support » Themes and Templates » Jquery ui implementation

Jquery ui implementation

  • Kingpin200
    Member

    @kingpin200

    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

  • The topic ‘Jquery ui implementation’ is closed to new replies.