WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] My Child Theme is only loading the html and no CSS (6 posts)

  1. Codaline
    Member
    Posted 1 year ago #

    I'm sorry I'm new. This is what I've put in my style.css file in my child theme folder in wp-content/themes. But it doesn't seem to be displaying the CSS. My site is http://www.carolinewebsites.com

    '/*
    Theme Name: Responsive Child
    Description: Child theme for the Responsive theme
    Author: Caroline
    Template: responsive
    */
    @import url("carolinewebsites.com/wp-content/themes/responsive/style.css");'

    I'd be really grateful for any help.

    Regards

    Caroline

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Try:

    /*
    Theme Name: Responsive Child
    Description: Child theme for the Responsive theme
    Author: Caroline
    Template: responsive
    */
    @import url("../responsive/style.css");
  3. Codaline
    Member
    Posted 1 year ago #

    Hi! Thank you for your prompt reply! My file now says @import url("../responsive/style.css"); but still doesn't seem to work. I still get what looks like only html, with no styling...

    I thought the @import was meant to link the child theme to the Parent themess style.css file. But I can't seem to do it! The first link I put in directed to the CSS file if I put it in the search bar and now this one doesn't work either. Is there some other bit I could have got wrong?! Or something else I could try?

    Thank you for your help.

    Regards

    Caroline

  4. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    the child theme's stylesheet is not found at this address:
    carolinewebsites.com/wp-content/themes/Childtheme/style.css

    double check the child theme's folder, and the capitalisation of the folder name,and the location of style.css of the child theme

  5. Codaline
    Member
    Posted 1 year ago #

    This works:
    http://carolinewebsites.com/wp-content/themes/Child%20theme/style.css
    with a space between Child and theme...
    Thank you so much for your help.

  6. Codaline
    Member
    Posted 1 year ago #

    CSS seems to work for twentyeleven which displays normally but none of the others when I change the @import url. What is wrong?! Please help I would like to use responsive.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags