• Hello,
    I’m trying to create a child theme and have created a folder:
    public_html/wp-content/themes/adelle-child

    In the adelle-child file my CSS reads:

    /*
    Theme Name: Adelle Child
    Theme URI: https://Sassessme.com/
    Description: Child theme for the Adelle theme
    Author: Sassica
    Author URI: https://Sassessme.com/about/
    Template: Adelle
    Version: 0.1.0
    */
    @import url(“../Adelle/style.css”);

    I am being told “stylesheet is missing.”

    Can anyone help me?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Change the capital S in the stylesheet file name of your child theme to small s.

    So change from

    /wp-content/themes/adelle-child/Style.css

    to this

    /wp-content/themes/adelle-child/style.css

    And I think for this theme you have to @import another stylesheet from parent too, not just a standard one as most WP themes.

    Also on a sidenote, for security reason, you must go disable directory browsing in your hosting account.

    Thread Starter Sassessme

    (@sassessme)

    Thanks so much. I’ve changed the Style to a lower case “s.”

    As far as importing another stylesheet, how do I do this? I was following the directions on the WordPress site and they didn’t mention this.

    Thank you for letting me know about the security issue. I had no idea it had this default setting! I can’t see where to disable it though.

    To disable directory browsing, you could do it via cPanel, your webhost will have this information for you. When done right, this folder will not list files inside it.

    yousite/wp-content/themes/adelle-child/

    Regarding the stylesheet, with parent theme active, view source and see all the CSS from theme in the <head>. Switch to child theme and see if all the necessary CSS are loaded. If not, try import it the same way you did for the main one.

    For more details, it’s best to ask this over at your theme vendor support, because theme might enqueue additional stylesheets via function.

    BTW, in case that all you are going to do is some CSS customizations, you might not need a child theme, just do it via Jetpack Custom CSS module, since you’ve already installed it.

    Thread Starter Sassessme

    (@sassessme)

    I’ve just spent an hour talking to my webhost and they can’t tell me how to disable directory browsing. Can you tell me exactly what you’re doing to be able to see my directory so I can refer them to that?

    Thanks again

    https://sassessme.com/wp-content/themes/adelle-child/

    This link when visited, it’s not supposed to list all the files in there. In cPanel, check out Index Manager.

    Thread Starter Sassessme

    (@sassessme)

    Thank you so much! I’ll go into the Index Manager and change my settings.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘"Stylesheet is missing" for child theme’ is closed to new replies.