Support » Fixing WordPress » Add header to Blog Page, not front page

  • This site was built off of twenty10 theme and now we added a blog page. Yet the content is running into sidebar and we can’t figure out how to add a header image to the top.

    Looked for the the drop down to offer blog style in back end, but it doesn’t offer the choice.

    Thanks in advance for any help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • To prevent the content running into the sidebar, add this to your style.css file at the bottom on a new line (or better yet, to your child theme):

    #content {
        margin: 0 280px 0 20px !important;

    Thanks for the quick response Josh. We added the code to CSS, but it changed the entire site. I should have been more clear, but we’re trying to apply a content/sidebar to just the blog page.




    Forum Moderator

    Apply a class to #content based on the is_home() conditional:

    <?php if( is_home() ) $class= = ' class="narrow";
    else $class = '';?>
    <div id="content"<?php echo $class;?>>

    and then style the new class using CSS.

    Thanks esmi! I appreciate the help. I will give it my best.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add header to Blog Page, not front page’ is closed to new replies.