Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes, I am adding the following code

    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’, ‘/wp-content/themes/harmonchild/style.css’ );

    }

    my child theme is harmonchild. I created a functions.php in child theme directory copied everything from parent theme’s functions.php and pasted your code to the very last. The previous line is add_action(‘wp_head’, ‘maxflat_site_title’, 1);

    I know zero php and i know I am making some mistake, but I don’t know what.

    Thread Starter AmruthaSrinivasan

    (@amruthasrinivasan)

    The edits in the parent theme are working fine. I use the same code in child theme but it does not work. Please help.

    Hello,

    I am also facing the same issue with the theme. I edit in the child theme and it is not reflecting. I cleared browser and server caches to see if that might be the issue and narrowed it down to theme. Please help.

    @kumokumo

    Can i know where to add the code above. I created a functions.php in child theme and added at the last and I get server error when I load the site.

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