Skip to:
Content
Pages
Categories
Search
Top
Bottom

Pagination – changing arrows to Next/Previous


  • Tanya
    Participant

    @pjtna

    I’m trying to change the pagination to Next and Prev

    In plugins -> bbpress -> bbp-includes.php -> bbp-reply-template.php

    I have found that you can replace
    ‘prev_text’ => ‘←’,
    ‘next_text’ => ‘→’,
    with
    ‘prev_text’ => ‘Prev;’,
    ‘next_text’ => ‘Next’,

    I know you’re not meant to hack the core, so how do I do this in my own theme?

    Using WordPress 3.4.1, bbPress 2.1.2 and my forums are a current work-in-progress at http://netballscoop.com/forums/

Viewing 5 replies - 1 through 5 (of 5 total)

  • kraigg
    Participant

    @kraigg

    I’m also looking for a solution to this, without hacking the core bbPress files.

    The forward and back arrows (‘←’ and ‘→’) are not very accessible to people who use screenreaders.

    Same issue here. Hope someone can help.


    Tanya
    Participant

    @pjtna


    scottpoulin
    Participant

    @scottpoulin

    I had a feeling there would be an easier way than a new plugin. Add this to your theme’s functions.php:

    function my_pagination( $args ) {
    	$args['prev_text'] = 'previous';
    	$args['next_text'] = 'next';
    	return $args;
    }
    add_filter( 'bbp_topic_pagination', 'my_pagination' );

    scottpoulin
    Participant

    @scottpoulin

    also add:
    add_filter( 'bbp_replies_pagination', 'my_pagination' );
    add_filter( 'bbp_search_results_pagination', 'my_pagination' );

    Though I couldn’t get the search results piece to work – those don’t seem to paginate at all, could be a plugin conflict or something though.

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