Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #986043

    In the blog page, there are next and previous arrows at the sides of the page.
    In the RTL layout, I would expect the left arrow to link to the next blog post and the right arrow to link to the previous blog post. However, this is not the case.
    The left arrow goes to the previous post and the right arrow goes to the next post.
    Is there a way to fix this?

    #986556

    Hey rezaies,

    Yes, you can change the order of the arrows by adding this code to your child theme functions.php file:

    
    add_filter( 'avia_post_nav_entries', 'enfold_customization_postnav', 10, 2); 
    function enfold_customization_postnav($entries, $settings)
    {
    	$entries['prev'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    	$entries['next'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    
        return $entries;
    }
    

    Best regards,
    Dude

    #986572

    Thank you
    The code worked perfectly.

    #986576

    Hi,

    Perfect – glad I could help you :)

    Best regards,
    Dude

    #986578

    Hi,

    Perfect – glad I could help you :)

    Best regards,
    Dude

    #986579

    Hi,

    Perfect – glad I could help you :)

    Best regards,
    Dude

    #986580

    Hi,

    Perfect – glad I could help you :)

    Best regards,
    Dude

    #986581

    Hi,

    Perfect – glad I could help you :)

    Best regards,
    Dude

    #986582

    Hi,

    Perfect – glad I could help you :)

    Best regards,
    Dude

    #986583

    Hi,

    Perfect – glad I could help you :)

    Best regards,
    Dude

    #986584

    Hi,

    Perfect – glad I could help you :)

    Best regards,
    Dude

    #986585

    Hi,

    Perfect – glad I could help you :)

    Best regards,
    Dude

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘Blog next/previous arrows in RTL’ is closed to new replies.