Forums

[resolved] Twentyeleven Code in Child Theme Style Sheet Not Working (5 posts)

  1. Zorba the Geek
    Member
    Posted 8 months ago #

    Hello and thanks in advance,

    I'm using theme Twentyeleven with a child theme (which has been activated).

    I wanted to reduce the amount of white space in the area above and below the site title.

    I added this code to my child style sheet, style.css:

    #site-title {
    	margin-right: 270px;
    	padding: 1.5em 0 0;

    And nothing changed.

    Then I went into the Twentyeleven style sheet (not the child)
    found the code there,
    then changed it from 3.65625em to 1.5em

    Then it worked: the change appeared on my blog.

    Am I right to assume that something is not working?

    I should not need to change the TwentyEleven style sheet; I should be able to make this kind of change from my child theme style sheet.

    How can I fix this?

    Thanks again,

    Zorba

  2. alchymyth
    The Sweeper
    Posted 8 months ago #

    without seeing your site, it is virtually impossible to comment on your problem.

    can you post a link to your site?

    what is the code of style.css of your child theme?
    (please follow http://codex.wordpress.org/Forum_Welcome#Posting_Code if the code is longer than 10 lines)

  3. Zorba the Geek
    Member
    Posted 8 months ago #

    Sure, and thanks -- here is the link to my site:

    http://ithacarocks.com/

    and here is the link to my Twentyeleven child theme style sheet:

    http://pastebin.com/LvwZ8bB1

  4. alchymyth
    The Sweeper
    Posted 8 months ago #

    make sure that the curly brackets are closed } for each style;

    for instance for this one:

    #branding {
            background: yellow;
    	border-top: 0px solid #bbb;
    	padding-bottom: 0px;
    	position: relative;
    	z-index: 2;

    and this one:

    #site-title {
    	margin-right: 270px;
    	padding: 1.65625em 0 0;

    (there might be more; not closing them prevents the further below following styles from getting applied)

  5. Zorba the Geek
    Member
    Posted 8 months ago #

    Yes, there were more -- and that change fixed everything.

    Thank you very much, alchymyth !

    (Thanks for the solution, and thanks for the fast reply!!)

Reply

You must log in to post.

About this Topic