• Hi, I’m running a Twenty Eleven child theme and I can’t get the single post page to be formatted the same as the post excerpts on the home page.

    My blog is: trillionairegamer.com

    I only have one post up right now, but if you click on it and go to the full post you’ll see that the format is off. I can’t figure out if this is a CSS issue or something else. Anyways I want the single post to look just like the home page.

    Hope someone can help.

    Thanks,
    Brent

Viewing 6 replies - 1 through 6 (of 6 total)
  • You’ll have to look for #content in your CSS-sheet. In the page.php file you’ll find which CSS will need to be altered

    Thread Starter brent7

    (@brent7)

    When I edit #content it only makes changes to the content on the home page and not on the single posts.

    I’m looking in the page.php file right now and the only div is #content. So, I’m not sure what to edit in the CSS file. Could it be “.content-single” or something like that?

    Yep – right you are – try adding this:

    .singular #content {
        margin: 0;
        width: 97.5%;
    }

    Thread Starter brent7

    (@brent7)

    That did it! You guys are awesome.

    By the way, how did you find that it was .singular? I tried doing .content-single… but that didn’t work.

    Thank you so much for helping me out with this. I appreciate both of you taking a look at it.

    Brent

    The “secret” to CSS work is using a browser tool like Firebug – it shows you the CSS for any element on a page – then you can use that code to copy to the CSS file or modify according to what you want it to be. In this case, I opened both of your pages side by side and looked at the CSS for both pages – in just a few minutes, it was easy to see what the difference was :). The Firebug website has lots of good “how to” info – well worth spending a bit of time on it.

    Thread Starter brent7

    (@brent7)

    I’m going to have to get Firebug. I have CSS viewer right now, but it must not give as many options as Firebug.

    Thanks again!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Content marings off on home page and single content page…’ is closed to new replies.