• Resolved WorkinWP

    (@iguanamom)


    Hi,

    does Brasserie theme support a child theme? I’ve manually added one, made changes and they’re never picked up. I used two different plugins as well and those didn’t work either. I was able to see in the editor that I could choose the child theme but have never been able to get it to pick up the changes. I’ve had to modify quite a few “original” files which I’d prefer not to. No idea where I’m going wrong. I’ve read that some themes don’t support child themes and that’s the only thing I could figure was happening. Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Theme Author Template Express

    (@danstriker)

    Hello,

    Brasserie does support child themes. Have you followed the usual process:

    create a new theme folder (eg. “brasserie-child”) under the “wp-content/themes” folder. Then create a new css file in the child theme folder and call it style.css. Add the following code into this style.css file:

    /*
    Theme Name: Brasserie Child Theme
    Theme URI: https://www.templateexpress.com/brasserie/
    Description: Brasserie Child Theme
    Author: Template Express
    Author URI: https://www.templateexpress.com
    Template: Brasserie
    Version: 1.0
    */

    @import url(“../Brasserie/style.css”);

    /* =Theme customization starts here
    ——————————————————- */

    In your WordPress admin area you will have to activate the child theme in Appearance > Themes.

    Now go ahead and add some styles to your child theme style.css file.

    Thread Starter WorkinWP

    (@iguanamom)

    Thanks for the reply. Yes, I had done that before and the one time it did show up in the theme section where you can click on ‘activate’, when I did that, and went back to the website, all of the customization had disappeared like it was a brand new site with nothing in it. Was I supposed to copy over .css files from the original template? I can’t imagine you’re supposed to have the child theme as the ‘main’ theme? Or am I missing something here?

    One of the gotchas of using a child theme is that because WordPress considers them to be two separate themes, WordPress won’t automatically carry over certain theme settings. You’ll usually have to reassign any menus and widgets and re-set any theme settings from Dashboard > Appearance > Customize.

    Thread Starter WorkinWP

    (@iguanamom)

    That’s crazy! So basically you should set it up at the very beginning before doing anything with the theme. Copying over certain files into the child theme won’t help this i.e., style.css and functions.php?

    Unfortunately, no.

    Thread Starter WorkinWP

    (@iguanamom)

    Ok, thanks for the help!

    I put this in this in my funtions.php child theme
    <?php
    /**
    * Brassiere-Child theme functions and definitions
    */

    /*———————————————————————————–*/
    /* Include the parent theme style.css
    /*———————————————————————————–*/

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

    }

    And put this in the style.css of my child theme and works

    /*
    Theme Name: Brasserie Child Theme
    Theme URI: https://www.templateexpress.com/brasserie/
    Description: Brasserie Child Theme
    Author: Template Express
    Author URI: https://www.templateexpress.com
    Template: Brasserie
    Version: 1.0
    */

    /* =Theme customization starts here
    ——————————————————- */

    I forgot the template name should be: Template: brasserie

    Thread Starter WorkinWP

    (@iguanamom)

    Thank you!

    Every theme supports creating a child theme. Direct download link of this theme’s child can be found here: https://wordpresschildthemes.com/brasserie-child-theme/

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Brasserie Child Theme’ is closed to new replies.