• I want to create child theme of this plugin but there should be a mistake i put this code into child theme’s functions.php:

    <?php
    add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
    function enqueue_parent_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
    }
    
    endif;

    This doesnt work. Why?

Viewing 1 replies (of 1 total)
  • Try removing that endif; line. We didn’t start an “if” statement; we have no need to “end” something that didn’t exist in the first place.

    And make sure that your child theme’s style.css is properly setup as well.

    • This reply was modified 7 years, 10 months ago by ThePixelMe.
Viewing 1 replies (of 1 total)
  • The topic ‘Which code should I put into this theme’s child functions.php?’ is closed to new replies.