• 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’, ‘https://jqueryui.com/themes/base/jquery.ui.all.css&#8217;);//comments_popup_script(); // off by default ?>

  • The topic ‘Jquery UI Accordion Installation’ is closed to new replies.