• I am creating a child’s theme for the first time using the enqueue method rather than @import. My question concerns the code that is to be included in the functions.php file:

    //
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );

    }
    //

    Is this a straight copy and paste? Or do I need to edit ‘parent-style’ or ‘/style.css’?

    Something seems to be wrong with my stylesheets for nameofgamebook.com. As you can see, for example, the red background for “BUY NOW” in the navigation works on the Home, Contact and Buy Now pages, but not for The Book or The Author.

The topic ‘enqueue child/parent stylesheets’ is closed to new replies.