• Hi,

    I’m using HarmonUX Core theme. I decided to create the child theme on my own but it turns out my first attempt was faulty and the child theme wasn’t overriding the parent theme. I then read about the Child Themify plugin and decided to create a new child theme from scratch using it, which I did. I deactivated the old child theme and activated the new one. Everything seems to be on place, however the new child theme doesn’t seem to be overriding the parent theme. Could it be that I need to delete the old child theme? Is it safe to do it? Should I delete all child themes and strat from scratch?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Lisa

    (@workingwebsites)

    I’d suggest starting fresh and delete the child themes.
    If you have a lot of work into the child themes, you could make a backup.

    I’d also suggest disabling the Child Themify plugin to keep everything simple.

    Now, start over…
    Set up your child theme.
    See: https://codex.wordpress.org/Child_Themes for guidance.

    You may run into the same problem as before where the child isn’t over-riding the parent. If so, let’s have a look as to where that’s happening. Is the style sheet? Individual files?

    If it’s the style sheet, check the enqueue set up. The Child Theme documentation talks about this.
    https://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme

    You need to make sure
    a) The parent’s style sheet is called into the child’s
    Ex Code:

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

    }
    ?>

    b) The child’s style sheet is called after the parent’s style sheet to override parent styles.

    function theme_enqueue_styles() {

    $parent_style = ‘parent-style’;

    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’ );

    Try that, see if it helps.

    if it does not help, please post in the parent theme’s forum at https://wordpress.org/support/theme/harmonux-core

    Thread Starter superflicka

    (@superflicka)

    Lisa, thank you so much for your help! I’ll check now see if it works.

    Michael, sure, I will.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child theme not responding’ is closed to new replies.