Skip to:
Content
Pages
Categories
Search
Top
Bottom

Return to top of forum link

  • @torpeyisgod

    Participant

    I want to display a return to the top of forum link at the bottom of each threads, which takes you back to the parent forum.

    Any ideas guys?
    Any help would be much appreciated.

Viewing 1 replies (of 1 total)
  • @netweb

    Keymaster

    This should do the trick 🙂 Then just add some styling via CSS or the HTML markup in the function below and add it to your themes functions.php file.

    
    function ntwb_forum_link() {
    	?>
        <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a>
        <?php
    }
    
    add_action( 'bbp_template_after_replies_loop', 'ntwb_forum_link' );

    Update: Or just download the gist here and install it as a plugin 😉
    https://gist.github.com/ntwb/8295783

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar