• I have followed the instructions in www.remarpro.com Codex for Child Themes and have not been able to create a Simplent Child theme that loads all the styles included in the original theme.

    Here is the CSS file I’ve created:

    /*
     Theme Name:   Simplent Child
     Theme URI:    https://opensources.davy.us/wp-content/themes/simplent-child/
     Description:  Simplent Child theme, based on Simplent theme.
     Author:       Abdul Rafay
     Author URI:   https://abdulrafay.me/
     Template:     simplent
     Version:      1.0.0
     License:      GNU General Public License v2 or later
     License URI:  https://www.gnu.org/licenses/gpl-2.0.html
     Tags:         blog, custom background, custom colors, custom header, custom menu, editor style, featured images, flexible header, one column, post formats, right sidebar, rtl language support, sticky post, threaded comments, translation ready, two columns
     Text Domain:  simplent-child
    */

    And here is the PHP file I have created:

    <?php
    function my_theme_enqueue_styles() {
    
        $parent_style = 'simplent-style'; // This is 'simplent-style' for the Simplent 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' );
    ?>

    Am I missing something?

    The page I need help with: [log in to see the link]

  • The topic ‘Simplent Child Theme Not Loading All Styles’ is closed to new replies.