• Resolved Makway

    (@makway)


    Hello. Tell me, please, does this topic support child themes? I make the child theme, as usual, I activate, after that a white screen appears on the site.

Viewing 4 replies - 1 through 4 (of 4 total)
  • AddWeb Solution

    (@addweb-solution-pvt-ltd)

    Hello makway,

    I think you was missed below code in functions.php.

    
    <?php
    function my_theme_enqueue_styles() {
     $parent_style = 'parent-style'; // This is 'twentyseventeen-style' for the Twenty seventeen theme.
     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 ),
         wp_get_theme()->get('Version')
     );
    }
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    ?>
    

    Further you can Check Create Child Theme tutorial.

    Hope this will helps you.

    Thanks!

    Thread Starter Makway

    (@makway)

    Many thanks! Everything is working!

    AddWeb Solution

    (@addweb-solution-pvt-ltd)

    @makway, Good to see that our provided solution worked for you. Can you please mark as “Accepted Solution” to make my put in efforts worth!

    Thread Starter Makway

    (@makway)

    Oh sure!

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