Forums

Changing template from 2 column to 1 column (3 posts)

  1. twlocke
    Member
    Posted 2 years ago #

    I'm very new to WordPress and I don't have much coding experience. I'm using a theme called HemingwayEx and it uses two columns in the blogroll. I would like to know how I can change it to 1 column centered so I can display my portfolio images more effectively.

    Any help would be much appreciated

    Thanks, Travis

    http://www.twlocke.com/home

  2. dsdeur
    Member
    Posted 2 years ago #

    The essiest way to achive this is to change query_posts('showposts=1');
    in your index.php file to query_posts('showposts=1'); so there will only show one post. Then you have to change the css, look for

    #primary.twocol-stories .story{
      float:left;
      width:48%;
      margin:0 0 0 4%;
      display:inline;
    }

    and change it to

    #primary.twocol-stories .story{
      width:100%;
      margin:0 auto 0 auto;
    }

    we set the width so it will fill the entire div and center it by setting the left and right margins to auto, not really necessary, but this will allow you to adjust the width.

    If there are any images or otter things inside the post that have an specific width you have to change them in you css file.

    I hope this will help.

    Greetz,

    Durgé
    Dimics.com

  3. twlocke
    Member
    Posted 2 years ago #

    Dude, that's awesome!! It worked really well and was super easy. Thanks a bunch :)

Topic Closed

This topic has been closed to new replies.

About this Topic