WordPress.org

Ready to get started?Download WordPress

Forums

Add header to Blog Page, not front page (5 posts)

  1. mixit
    Member
    Posted 2 years ago #

    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.

    http://tinyurl.com/74rka57

  2. 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;
    }
  3. mixit
    Member
    Posted 2 years ago #

    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.

    thanks

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    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.

  5. mixit
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic