Forums » Theme: raindrops » "Older posts" button remove

  • Resolved Walexer

    (@walexer)


    When there is more than 5 posts on my home page, the “Older posts” and the “newer posts” buttons appear. I would like to remove the upper buttons and leave only the lower ones. My website http://top10blog.net/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author nobita

    (@nobita)

    Hi Walexer

    Please add to functions.php(<?php before )below codes

    <?php
    add_filter( 'raindrops_next_prev_links', 'my_remove_above_next_prev_links', 10, 2 );
    
    function my_remove_above_next_prev_links( $html, $position ) {
    
        if ( $position == 'nav-above' ) {
            return;
        }
        return $html;
    }
    ?>

    Thank you

    Thread Starter Walexer

    (@walexer)

    It shows “internal server error” when i put this code

    Theme Author nobita

    (@nobita)

    I will let you know how that does not use PHP

    Add to style.css last line below

    #nav-above{
        display:none;
    }

    Thank you

    Thread Starter Walexer

    (@walexer)

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘"Older posts" button remove’ is closed to new replies.