WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Older/Newer pages (8 posts)

  1. markovacs
    Member
    Posted 4 years ago #

    Hi,

    I have my newer/older page links working fine, but I do not want them to be displayed at the top of the page only at the bottom.

    Could anyone help me what do I have to change to be able to do that?
    I have tried many things but I usually wreck my pgae totally :)

    Thanks

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    What is being used to generate the newer/older post links? next_posts_link and previous_posts_link or posts_nav_link?

  3. markovacs
    Member
    Posted 4 years ago #

    Thanks esmi for the reply, but I am not completely sure since none of the above match 100%
    Please see the code:(it is from index.php)

    <?php
    $prev_link = get_previous_posts_link(__('Newer Entries &raquo;', 'kubrick'));
    $next_link = get_next_posts_link(__('&laquo; Older Entries', 'kubrick'));
    ?>
    
    <?php if ($prev_link || $next_link): ?>
    <div class="Post">
        <div class="Post-body">

    Is that the right place I should look for the coding?
    Here is the site is it helps: fittmamablog.hu

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    You need to look for a code block that starts with <div class="navigation"> (I think).

  5. markovacs
    Member
    Posted 4 years ago #

    Yeah I got that `<div class="navigation">
    <div class="alignleft"><?php echo $next_link; ?></div>
    <div class="alignright"><?php echo $prev_link; ?></div>`

    and to do what with it?
    delete, wont it make the bottom ones disappear?

  6. markovacs
    Member
    Posted 4 years ago #

    <div class="navigation">
    			<div class="alignleft"><?php echo $next_link; ?></div>
    			<div class="alignright"><?php echo $prev_link; ?></div>
    </div>
  7. markovacs
    Member
    Posted 4 years ago #

    ok I deleted it and it works!

    Thanks esmi.

    Do you know how could I decrease the space now between the menubar and the first article?

    Thanks again

  8. esmi
    Forum Moderator
    Posted 4 years ago #

    There appears to be an empty post div at the top of your Home page content. That's what is creating the gap between the header and the first (visible) post.

Topic Closed

This topic has been closed to new replies.

About this Topic