Support » Fixing WordPress » Media gallery disappears when I enqueue a CSS for query

  • The website is
    The blog is a wordpress blog hosted through yahoo.
    I’ve placed an accordion panel on a custom page, using a child theme for 2014.
    However, when I enqueue the script that calls the css I want to use for the accordion panel, I can no longer view any images in my media gallery, nor will the page display after I update, publish, etc.
    I’ve placed the following code in the child themes functions folder:
    function my_scripts_method() {
    if ( !is_admin() ) {
    get_stylesheet_directory_uri() . ‘/js/accordion.js’,
    wp_register_style(‘jquery-custom-style’, get_stylesheet_directory_uri().’/css/jquery-ui-1.10.4.custom.css’, array(), ‘1’, ‘screen’);
    add_action(‘wp_enqueue_scripts’, ‘my_scripts_method’);

    I’ve narrowed it down to the enqueue style as the culprit – and I’ve spent hours trying to figure out how to fix it but can’t seem to get it right. (I’m also very, very new at this)
    Any help you could throw my way would be GREATLY appreciated. Thank You!

  • The topic ‘Media gallery disappears when I enqueue a CSS for query’ is closed to new replies.