Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #672968

    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.

    #674533

    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

    #674932

    Hi Ismael,

    Please find the code below.

    #676359

    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

    #676803

    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.

    #677892

    Hi,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #677943

    Thanks Josue,

    #679773

    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

    #681552

    Hi Ismael,

    It’s not working for me. I see the span tag there but nothing is showing…

    #682950

    Hi,

    Is it working if you use the blog posts element? It’s probably a query issue but I’m not sure yet.

    Best regards,
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.