• Resolved prakin

    (@prakin)


    So, all of a sudden my stylesheet is not working. I have had to paste everything into WP CSS editor temporarily. I have been using the @import, which I know is not the way of doing things now.

    */
    @import url("../sela/style.css");
    
    */

    Not sure if I inadvertently changed something, but since the code works in WP editor, I assume it has got something to do with the way it is being called. Any suggestions?

    • This topic was modified 7 years, 5 months ago by prakin.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    It looks like you might have the import tag inside a CSS comment: https://css-tricks.com/snippets/css/comments-in-css/

    Thread Starter prakin

    (@prakin)

    Sorry. that was a typo. It is not inside the comments. but I am looking closer and think that maybe there is something wrong with my template name???

    /*
    Theme Name:Sela Theme Child
    Theme URI: https://www.queenbeeofhoneydos.com
    Template: selatheme-child
    Description: This is a child theme of Sela
    Author: Rachel Lynn
    Author URI: https://www.queenbeeofhoneydos.com
    Version: 1.0.0
    
    */
    @import url("../sela/style.css");

    I also have my child theme folder name exactly like that (selatheme-child). But I was thinking for some reason that the template before just said “sela” But when I change it to that, I get a broken message at the top. You know, the one that says “please install the sela theme”

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi there @prakin

    What stylesheet is not working? and how is it being loaded?

    Thread Starter prakin

    (@prakin)

    my child theme style.css is not loading at all. It doesn’t appear when I inspect the element (head).

    Thread Starter prakin

    (@prakin)

    Well,I figured it out. I think there must be some sort of cosmic joke on me, because every time I post a problem that’s when I finally figure it out. lol

    I just cswitched from @import to enqueue, and then had to change from my child theme to another theme. When I went back it started working. Go figure.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CSS Stylesheet no longer working’ is closed to new replies.