How to add space between navigation bar and article in default theme?

Posted by

How to add space between navigation bar and article in default theme?

If you are using a default theme, or similar to it, you might want to add some space between the two links that show the previous and next post links. This can be done by using following steps:

Open the file single.php in the default theme directory and find the following code:

<div class="navigation">

<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>

<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>

</div>


Jut add a couple of br tags at the end of the previous post, like this:


<div class="navigation">

<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div><br /><br />

<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>

</div>


That’s It!

Ryan S.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.