Support » Themes and Templates » Child theme has no CSS styling

  • Resolved halsnalle


    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:
    Template:   twentyfourteen
    Version:    1.0.0
    Tags:   -
    Text Domain: twenty-fourteen-child
    @import url("../twentyfourteen/style.css");

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski


    Brute Squad and Volunteer Moderator

    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.

    A, many thanks, that solved the problem!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child theme has no CSS styling’ is closed to new replies.