Forum Replies Created

Viewing 2 posts - 31 through 32 (of 32 total)
  • Author
    Posts
  • in reply to: Child Theme #749842

    Hi @rikard

    What I meant was that I want to make some changes to the functions.php file as well in the child theme. Do I need to use the code that I mentioned earlier or would the functions.php file for the child theme start working automatically?

    in reply to: Child Theme #749626

    Hello Eric

    From what I have understood from the comments above is that the style.css file will get included automatically, but that the functions.php file might not. Does that mean that if I have to make any changes to the functions, I need to add some code to the functions.php file?

    I found the following code on a Smashing Magazine tutorial. Please let me know if I should use this.

    
    add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
    
    function enqueue_parent_styles() {
       wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
    }
    
Viewing 2 posts - 31 through 32 (of 32 total)