Support » Theme: Baskerville » Child Theme Not Working

  • I have created the Child Folder: “baskerville-child”

    And created a functions.php and a style.css

    But when uploading the folder to my themes folder a message appears in the Themes Page: “Theme Broken”, so it seems that something is not working and I can activated.

    This is what I included in functions.php:

    add_action( ‘wp_enqueue_scripts’, ‘baskerville_enqueue_styles’);
    function baskerville_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’);


    This is what I included in styles.css:

    Theme Name: Baskerville Child
    Version: 1.17
    Author: Anders Norén
    Author URI:
    Theme URI:
    License: GNU General Public License version 2.0
    License URI:


    * Theme customization starts here

    What is it that is showing me this error?

Viewing 1 replies (of 1 total)
  • Hi

    take a look HERE

    The stylesheet must begin with the following:

     Theme Name:   Baskerville
     Theme URI:
     Description:  Baskerville Child Theme
     Author:      XXX XXXX
     Author URI:
     Template:     baskerville
     Version:      1.0.0
     License:      GNU General Public License v2 or later
     License URI:
     Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
     Text Domain:  Baskerville-child

    Template: baskerville is the most important to have
    Maybe you would have to include this code to you child theme css:
    Just bellow the header

    @import url("../baskerville/style.css");

    This will say the child theme style.css where the parent theme style.css is located.
    Let me know.

Viewing 1 replies (of 1 total)
  • The topic ‘Child Theme Not Working’ is closed to new replies.