Ready to get started?Download WordPress


Breaks between posts on front page (6 posts)

  1. ghecko
    Posted 9 years ago #

    Anyone know how to make the line breaks between each post on the front page less

    Also is it possible to add a small Gif image of say a line between each post.

    Thanks all

  2. Marc
    Posted 9 years ago #

    Placeing a gif between posts is easy, see this example: Cranial Cavity

    Add something like this to your style sheet:
    margin-top: 50px;
    background: #f5f6f7 url (relative path to image)
    padding: 5px;
    margin-bottom: 10px;
    background-color: #ffffff;

    text-align: center;

    then place the div class just after this bit of code in your index.php.

    <div class="feedback">
    <?php cjd_comment(); ?>
    <?php wp_link_pages(); ?>

    Your code may be slightly different dependent on the theme you use.

  3. ghecko
    Posted 9 years ago #

    my code is this in index.php

    <div class="feedback"><?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?><?php edit_post_link('Edit', ' — ', ''); ?></div>

    <?php trackback_rdf(); ?>


    What would I place after this ?

  4. ghecko
    Posted 9 years ago #

    Anyone have any idea please.

  5. Mark (podz)
    Support Maven
    Posted 9 years ago #

    <div class="feedback"><?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?><?php edit_post_link('Edit', ' � ', ''); ?></div>

    <?php trackback_rdf(); ?>

    <-----I would try here to start with.


  6. davidchait
    Posted 9 years ago #

    if you want to do it without CSS, just add:

    <center><img src="someimage.gif" /></center>

    or alternately, no-graphic (to start...):


    If you want css solutions, lemme know, and I can give you more complex stuff. ;)

    Line breaks between posts depend upon the output HTML, and CSS margins/padding. Could be you have extra lines, could be your CSS is adding extra space in you don't want. If you add your URL to your profile, people can click to see your website easily and help...

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.