• It’s great that the WP core now supports the ability to break up comments into pages on the user side.

    Now what would be really great would be to have links on the user side like you get in the admin that allow you to jump to to a specific page of comments, or straight to the last page, etc.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Jonas Grumby

    (@ss_minnow)

    Come to think of it, that would have to be written into the theme…

    Anybody know how to do it?

    Thanks

    Are you talking about previous comments link and next comments link

    Thread Starter Jonas Grumby

    (@ss_minnow)

    Yes, but instead of just having links to the previous and next page I’m wondering if there’s a way to jump to a specific page or go straight to the first or last page from any page (like you can in admin).

    I can hard-code it into the comments.php but it would be nice to have a way for the theme to generate those links automatically.

    Thanks

    From my notes:

    <div class="comment-navigation">
    <p class="page-numbers">
     <?php paginate_comments_links(); ?>
     </p>
     </div><!--Close comment-navigation-->
    
    The above creates numbered links to paginated comments e.g 1 2 3  but       <?php paginate_comments_links(); ?>    is not well-documented. See  https://codex.www.ads-software.com/Template_Tags/paginate_comments_links 
    
    /*LIST OF PAGE NUMBERS INSTEAD OF LINKS*/
    
    div.comment-navigation {width:100%;margin:30px 0 30px 0;padding:0;overflow:auto;border:0;}
    
    p.page-numbers {font-size;1.2em;text-align:center;}
    
    a.page-numbers:link{text-align:center;letter-spacing:50px;color:red;}
    a.page-numbers:visited{text-align:center;letter-spacing:50px;color:red;}
    a.page-numbers:hover{text-align:center;letter-spacing:50px;color:red;}
    
    /* Make sure this comes after a.page-numbers so that this letter spacing over-rides previous letter-spacing*/
    a.prev:link {letter-spacing:0;color:red;text-decoration:none;}
    a.prev:visited {letter-spacing:0;color:red;text-decoration:none;}
    a.prev:hover {letter-spacing:0;color:red;text-decoration:none;}
    
    /* Make sure this comes after a.page-numbers so that this letter spacing over-rides previous letter-spacing*/
    a.next:link {letter-spacing:0;color:red;text-decoration:none;}
    a.next:visited {letter-spacing:0;color:red;text-decoration:none;}
    a.next:hover {letter-spacing:0;color:red;text-decoration:none;}
    
    span.page-numbers {font-style:normal;letter-spacing:50px;}
    span.current {color:black;}
    Thread Starter Jonas Grumby

    (@ss_minnow)

    Wow thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Feauture Request:: Page Links on Paged Comments’ is closed to new replies.