WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Raindrops Theme: Remove Next/Previous from posts (5 posts)

  1. dfgutzman
    Member
    Posted 2 years ago #

    I am using the Raindrops theme. At the bottom of each post, there is a next and a previous link that shows the title of the next/previous article. It also has a left or right arrow respectively.

    I would like to remove both the arrow and the next/previous functionality that shows the next/previous article.

    If you could let me know where the code is that I need to change, and what I need to change, I would greatly appreciate it.

  2. dfgutzman
    Member
    Posted 2 years ago #

    Has anyone had a chance to look at this?

  3. nobita
    Member
    Posted 2 years ago #

    Hi dfgutzman

    Please open the file raindrops/functions.php

    find function below.

    /**
     * Article navigation
     ......
     */
        if(!function_exists("raindrops_prev_next_post")){
        function raindrops_prev_next_post($position = "nav-above"){
           ......
           $html = '<div id="%1$s" class="%2$s"><span class="%3$s">';
            printf($html,$position,"clearfix","nav-previous");
            previous_post_link('%link','<span class="button"><span class="meta-nav">«</span> %title</span>');
            $html = '</span><div class="%1$s">';
            printf($html,"nav-next");
            next_post_link('%link','<span class="button"> %title <span class="meta-nav">»</span></span>');
            $html = '</div></div>';
            printf($html);
        }
        }

    and comment out like this

    /*$html = '<div id="%1$s" class="%2$s"><span class="%3$s">';
    
            printf($html,$position,"clearfix","nav-previous");
            previous_post_link('%link','<span class="button"><span class="meta-nav">«</span> %title</span>');
    
            $html = '</span><div class="%1$s">';
            printf($html,"nav-next");
            next_post_link('%link','<span class="button"> %title <span class="meta-nav">»</span></span>');
    
            $html = '</div></div>';
    
            printf($html);*/

    I am sorry to be poor at English.

    Thank you.

  4. dfgutzman
    Member
    Posted 2 years ago #

    I am sorry, but the code above does not exist in the function.php file. Any other suggestions for where it could be located?

  5. nobita
    Member
    Posted 2 years ago #

    Please see Raindrops 0.938 functions.php

    http://themes.svn.wordpress.org/raindrops/0.938/functions.php

    See souce view line 1517.

    Another way

    Open style.css and add below style rules at last line.

    #nav-below .nav-previous,
    #nav-below .nav-next{
    display:none;
    }

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Topic