WordPress.org

Ready to get started?Download WordPress

Forums

Breaks between posts on front page (6 posts)

  1. ghecko
    Member
    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
    Member
    Posted 9 years ago #

    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.

  3. ghecko
    Member
    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(); ?>
    -->

    </div>

    What would I place after this ?

  4. ghecko
    Member
    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.

    </div>

  6. davidchait
    Member
    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...):


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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.