WordPress.org

Ready to get started?Download WordPress

Forums

Is this what is should look like? (5 posts)

  1. spencerw
    Member
    Posted 1 year ago #

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    Hi,
    I have created a child theme using twentyeleven, but the css stylesheet has only this information.

    @charset "utf-8";
    /* CSS Document */
    /*
    Theme Name: Twentyeleven Child
    Description: Child theme for the twentyeleven theme
    Author: Spencer White
    Template: twentyeleven
    */
    
    @import url("../twentyeleven/style.css");
    
    #site-title a {
        color: #009900;}
    .page .entry-title { display: none; }

    ?

    Is this correct?

    thanks in advance

    Spence

  2. *Copies complete style.css into test installation*

    Yep, that's working. ;)

    I thought the @charset "utf-8"; at the top might cause an issue but on my test installation it worked fine.

  3. Andrew Bartel
    Member
    Posted 1 year ago #

    Yea man you're good to go.

  4. James Kirk
    Member
    Posted 1 year ago #

    Heya spencerw,

    Just remember not to place any CSS code before the:

    @import url("../twentyeleven/style.css");

    or else you're import function will not work and you'll lose all the styling from the parent style.css page.

    Cheers!

  5. spencerw
    Member
    Posted 1 year ago #

    Great, thanks everyone.

    Spence

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.