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?
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
Thank you
The code worked perfectly.
Hi,
Perfect – glad I could help you :)
Best regards,
Dude
Hi,
Perfect – glad I could help you :)
Best regards,
Dude
Hi,
Perfect – glad I could help you :)
Best regards,
Dude
Hi,
Perfect – glad I could help you :)
Best regards,
Dude
Hi,
Perfect – glad I could help you :)
Best regards,
Dude
Hi,
Perfect – glad I could help you :)
Best regards,
Dude
Hi,
Perfect – glad I could help you :)
Best regards,
Dude
Hi,
Perfect – glad I could help you :)
Best regards,
Dude
Hi,
Perfect – glad I could help you :)
Best regards,
Dude