Can't create a child theme

Mauer Themes Support Storyteller Can't create a child theme

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Paul 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1318

    Lichting98
    Participant

    Hi Mauer,

    One of the first things that I do with a new WP the is create a “Child” theme.

    This is the info I put in the style.css file:

    /*
    Theme Name: Mauer Storyteller child
    Description: Child Theme voor Storyteller
    Template: Mauer Storyteller
    Version: 1.2.0
    */

    @import url(“../mauer-storyteller/style.css”);

    /* =Theme CSS customization starts below – heel veel succes met Mauer Storyteller
    ————————————————————– */

    But that doesn’t work.
    How come?

    Regards,
    Lichting98

    #1328

    Paul
    Keymaster

    Hello Lichting98,

    You actually have errors in the posted code. Please see this page for reference – https://codex.wordpress.org/Child_Themes.

    The correct child theme’s style.css would have the code:

    /*
     Theme Name:   Mauer Storyteller Child
     Description:  Mauer Storyteller Child Theme
     Template:     mauer-storyteller
     Version:      1.2.0
    */

    Also, please mind that (as stated in the above mentioned Codex page) using @import for the parent stylesheet is not recommended by WP documentation. The correct method of enqueuing the parent theme stylesheet is to add a wp_enqueue_scripts action and use wp_enqueue_style() in your child theme’s functions.php.

    By the way, in case you just want to tweak the CSS of the theme, I would say creating a child theme is not worth the hassle. You can do it with the Simple Custom CSS plugin (https://wordpress.org/plugins/simple-custom-css/). Your custom CSS will stay intact during theme updates. Once you install and activate the plugin, in your Admin Panel please go to ‘Appearance’ > ‘Custom CSS’.

    Regards,
    Paul

    #1347

    Lichting98
    Participant

    Thanks Paul,

    You made my day!

    Bye,

    Lichting98

    #1359

    Paul
    Keymaster

    You’re welcome, Lichting98!

    if you enjoy the theme (or the support), I would really appreciate if you could rate it on ThemeForest. This literally takes a moment and actually helps a lot. Thank you.

    Regards,
    Paul

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.