Support » Themes and Templates » enqueue parent style beginner issues

  • Resolved lisarose66



    To start off, let me say that have gone through and read as many of the posts about ‘enqueue parent styles’ as I can and still have a lot of trouble grasping the process. For my inability to comprehend this, I am sorry.

    So, I have made child themes before, which is also why I feel stupid, and yet even using just @import am unable to load the parent styles. I have checked the style sheet header and everything is in order there, or so I believe as I copied it from the codex, yet substituting my theme names.

    EDIT: May I add that the styles were compiled in scss. Would that make a difference? Is it worth it to work with this or would it be better to pick a different theme to work from? There are 3 css files:
    style-compiled.css commented as the original SASS build for the theme CSS

    This site is on my desktop so I am unable to post a link code will have to do.

     Theme Name:   Hellish Simplicity Child
     Theme URI:
     Description:  Hellish Simplicity Child Theme
     Author:       Lisa Reisman
     Author URI:
     Template:     hellish-simplicity      /*note: this is theme folder name*/
     Version:      1.0.0
     License:      GNU General Public License v2 or later
     License URI:
     Tags:         light, white, red, black, one-column, two-columns, right-sidebar, fluid-layout, custom-header, full-width-template, rtl-language-support, translation-ready, sticky-post, theme-options, threaded-comments
     Text Domain:  hellish-child

    Now here’s where I get lost. According to the Codex, to call the parent style you simply use ‘parent-style’. I do not see any instruction on whether or not to change that to the name of the parent theme or how to phrase it. Same for the child style. BUT, in forum examples, I see where the names are specified to the theme but there doesn’t seem to be any consistency in the phrasing, i.e. ‘hellish-simplicity-style’ vs ‘szy200-style’ when that is not the theme name.

    So, I hope you understand my predicament. This is the enqueue function I am trying to use.

    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',

    all wrapped up in a php tag.

    Should ‘parent-style’ be written as ‘hellish-simplicity-style’ and child-style’ written as ‘hellish-simplicity-child-style’?

    And shouldn’t the path to the style.css start in the template folder not the root?

    I thank you very much for your time and your patience.

    Lisa Rose

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m the author of the Hellish Simplicity theme. I’m not promising forwards compatibility for child themes, but you can indeed create one for it if you wish.

    What exactly do you want to do though?

    Do you want to detach the Hellish Simplicity CSS and attach your own? Or just add extra CSS to accompany the existing CSS?

    Just trying to add override CSS and add a header image to the template.

    Thank so much!! I love the template!!


    You will struggle to add a sensible header image via a child theme as I haven’t added any hooks in which would allow you dump in code at the places you will likely require it. I recommend forking the theme instead, so that you can add the header code in wherever you require it.

    I’m guessing other people will ask the same question about how to make a child theme, so in case you still want to go down that route, here is an example child theme I put together for you:
    It’s intentionally ugly as it’s just a demo of how the process works 😉

    Thank you for your help! this is wonderful!!

    Have a good one!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘enqueue parent style beginner issues’ is closed to new replies.