[resolved] Child theme has no CSS styling (3 posts)

  1. halsnalle
    Posted 2 years ago #

    I'm trying to create a child theme, but the child theme does not inherit any CSS styling from the parent theme. The content just appears as unstyled text.

    I followed the instructions here:

    I've tried creating child themes for Twentyfourteen and Twentytwelve, but get the same result: When the child theme is active, the blog content has no styling at all.

    Here's my child theme's style.css:

    Theme Name: Twenty Fourteen Child
    Theme URI:  -
    Description:    Twenty Fourteen Child Theme
    Author: Johan
    Author URI: http://mothugg.se
    Template:   twentyfourteen
    Version:    1.0.0
    Tags:   -
    Text Domain: twenty-fourteen-child
    @import url("../twentyfourteen/style.css");
  2. Uncomment out the @import line and it should work fine.

    Edit: I've added a note to the codex page for child themes. In most cases if you do not include that @import line then you will not get any styling from the parent theme.

  3. halsnalle
    Posted 1 year ago #

    A, many thanks, that solved the problem!

Topic Closed

This topic has been closed to new replies.

About this Topic