• Cannot import or access images after adding style.css and functions.php to new child theme directory (twentyfifteen-child). Media library just grinds away and remains blank. Functions.php code below. Media library works well in parent theme and child theme activates properly from dashboard.
    Media access function, as far as I can tell, is the only function that doesn’t work in the child theme.

    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }
    ?>

    style.css header

    /*
    Theme Name: Twenty Fifteen Child
    Theme URI:http://seattlesmarty.com/wp-content/themes/twentyfifteen-child/
    Author: Jeff Larsen
    Author URI: http://www.seattlesmarty.com
    Template:twentyfifteen
    Description: Twenty Fifteen Child Theme
    Version: 1.0.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: black, blue, gray, pink, purple, white, yellow, dark, light, two-columns, left-sidebar, fixed-layout, responsive-layout, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
    Text Domain: twentyfifteen-child
    */

    http://www.seattlesmarty.com

  • The topic ‘Media Library will not work in twentyfifteen-child theme’ is closed to new replies.