WordPress.org

Forums

Jquery UI Accordion Installation (1 post)

  1. radleaf
    Member
    Posted 3 years ago #

    Trying to get my jquery ui accordion to work but I'm having trouble with installation. This code is in my function.php file:
    function brightpage_child_script() {
    if (!is_admin()) {
    wp_register_script('top_slide', get_stylesheet_directory_uri() . '/js/slide.js', array('jquery'));
    wp_enqueue_script('top_slide');
    wp_enqueue_script('jquery-ui-core');
    wp_enqueue_script('jquery-ui-tabs');
    wp_enqueue_script('jquery-ui-dialog');

    }
    }

    add_action('wp_head', 'brightpage_child_script');
    ?>

    And this code is in my header.php file:
    <?php wp_deregister_style('jquery-ui'); wp_enqueue_style( 'jquery-ui', 'http://jqueryui.com/themes/base/jquery.ui.all.css');//comments_popup_script(); // off by default ?>

Topic Closed

This topic has been closed to new replies.

About this Topic