• Resolved halsnalle

    (@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:
    http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme

    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");
    */

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

    (@jdembowski)

    Forum Moderator and Brute Squad

    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.

    Thread Starter halsnalle

    (@halsnalle)

    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.