Reply To: Media Library crashed: funtions.php in child theme

Home Forums Support Media Library crashed: funtions.php in child theme Reply To: Media Library crashed: funtions.php in child theme

Home Forums Support Media Library crashed: funtions.php in child theme Reply To: Media Library crashed: funtions.php in child theme

#187498
Tom
Lead Developer
Lead Developer

Hi there,

You can remove this block:

function theme_enqueue_styles() {

    $parent_style = 'generatepress';

    wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style',
        get_stylesheet_directory_uri() . '/style.css',
        array( $parent_style )
    );
}
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );

It’s not necessary.

I’m not seeing anything that would break your Media Library though.

Try removing one function at a time until it’s fixed – that will narrow it down.

Let me know 🙂