• Hey there,

    my child theme setup is working but supposedly it’s slowing down my page. My loading times are faster when I’m using the parent theme. It is introducing lag. Do you have an idea how to fix that? Is there a faster way to integrate the child theme than mine? This here is the child themes function.php

    <?php
    /**
    * Enqueues child theme stylesheet, loading first the parent theme stylesheet.
    */
    function engine_custom_enqueue_child_theme_styles() {
    wp_enqueue_style( 'parent-theme-css', get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-theme-css') );
    }
    add_action( 'wp_enqueue_scripts', 'engine_custom_enqueue_child_theme_styles', 11 );
    ?>
  • The topic ‘How to set up a childtheme properly?’ is closed to new replies.