Hi,
I am trying to add Prev an Next button to my portfolio pagination as seen – https://kriesi.at/support/topic/adding-next-and-prev-pagination-links/
I used the code above, the Prev button shows but he Next button is not.
Hey nep102,
Thank you for using Enfold.
Did you modify the “function-set-avia-frontend.php” file? Please post the code of the function-set-avia-frontend.php file. Use pastebin.com.
Best regards,
Ismael
Hi Ismael,
Please find the code below.
Hi,
in line 868 you are using this:
`$output .= ‘<span class = “next_pagination”>’.get_next_posts_link(‘Next’).'</span>’;
$output .= “</$wrapper>\n”;
but as Elliott mentioned it should be like this:
$output .= ‘<span class = “next_pagination”>’.get_next_posts_link(‘Next’).'</span>’;
$output .= “</$wrapper>”.get_next_posts_link().”\n”;
`
Best regards,
Andy
Hi Andy,
Elliot mentioned there should be a line that is $output .= “</$wrapper>”.get_next_posts_link().”\n”; but there isn’t with the new code but it’s ” $output .= “</$wrapper>\n”;” Now, I replaced it with the code you mentioned and it broke the site showing blank…
Can someone help me here, thanks.
Hi,
Can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
Josue
Thanks Josue,
Hi,
Check this line:
$output .= '<span class = "next_pagination">'.get_next_posts_link('Next').'</span>';
.. replace it with:
$output .= '<span class="next_pagination">'.get_next_posts_link('Next').'</span>';
Screenshot: http://imgur.com/a/IM4D6
Best regards,
Ismael
Hi Ismael,
It’s not working for me. I see the span tag there but nothing is showing…