WordPress.org

Ready to get started?Download WordPress

Forums

Child Theme breaks if I make any changes (4 posts)

  1. mmdm
    Member
    Posted 1 year ago #

    I've set up a child theme but if I add anything to the style.css, the theme breaks. Here is the code I am trying to use to change the page title text. If I take out everything below the @import line, the theme works again but anything I add below there breaks it. What am I doing wrong?

    /*
    Theme Name: Twenty Eleven Child
    Version: 1.0
    Description: A child theme of Twenty Eleven
    Template: twentyeleven
    */

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

    .singular .entry-title {
    font-size: 26px;
    font-weight: normal;
    line-height: 30px;
    }

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    your @import is missing it's semi colon

    @import url ("../twentyeleven/style.css");
  3. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    make sure to add a semicolon at the end of this line:

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

    review:
    http://codex.wordpress.org/Child_Themes#Example_of_a_basic_Child_Theme

  4. mmdm
    Member
    Posted 1 year ago #

    Thanks, guys! I must have accidentally deleted it while I was editing it. I stared at it for so long and just couldn't see it. Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.