Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #373783

    Hi

    I would like to accomplish the following:
    Right now in blogs / archive page / blog posts shortcode, the pagination looks like this:

    < 1 2 <3_current> 4 5 > >> Page 3 of 7

    I want it to be something like

    <prev_button> 1 2 <3_current> 4 5 <next_button>

    Meaning, remove the arrows completely, remove “page X of Y”, and add next and prev buttons.

    How can I accomplish this?

    Thank you!

    #373845

    Hey website2create!

    Open up /enfold/framework/php/function-set-avia-frontend.php and find line 777.

    $output .= "<$wrapper class='pagination'>";
    

    Add this beneath it.

    $output .= '<span class = "previous_pagination">'.get_previous_posts_link('Previous').'</span>';
    

    And line 793 you should see this.

    $output .= "</$wrapper>".get_next_posts_link()."\n";
    

    Add this above it.

    $output .= '<span class = "next_pagination">'.get_next_posts_link('Next').'</span>';
    

    And you can style them with this.

    .previous_pagination {  }
    .next_pagination {  }
    

    Cheers!
    Elliott

    #375542

    Thanks, works flawlessly!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Adding Next and Prev pagination links’ is closed to new replies.