Support » Fixing WordPress » Breaks between posts on front page

  • ghecko

    (@ghecko)


    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Marc

    (@marc)

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

    Add something like this to your style sheet:
    .seperator
    {
    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(); ?>
    </div>
    <?php wp_link_pages(); ?>

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

    ghecko

    (@ghecko)

    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(); ?>
    -->

    </div>

    What would I place after this ?

    ghecko

    (@ghecko)

    Anyone have any idea please.

    <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.

    </div>

    davidchait

    (@davidchait)

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

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

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


    <center><hr/></center>

    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…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Breaks between posts on front page’ is closed to new replies.