WordPress.org

Ready to get started?Download WordPress

Forums

Add line break and clear:both after post - which template? (2 posts)

  1. Panzo
    Member
    Posted 3 years ago #

    Hi All,

    I'm wanting to add a line break and a clear:both style at the end of my blog posts in order to force ShareThis below all content.

    Currently I'm hand-coding:
    <br style="clear: both;" />
    after every post.

    How do I automate this? I tried adding it to index.php and page.php in the places I thought were the post ends but that didn't work.

    Thanks much.

    Panzo

  2. Varya
    Member
    Posted 3 years ago #

    In your themes/yourtheme/
    Style.css

    .post{
    	margin-bottom: 15px;
    	display: block;
    	clear: both;
    	}

    index.php
    add your <br> tag there if you cant do a border bottom or something on your .post class....

Topic Closed

This topic has been closed to new replies.

About this Topic