-
AuthorPosts
-
January 9, 2017 at 7:40 pm #731254
I believe I should have navigation arrows on my posts by default – but I don’t see them. How do I add post navigation arrows to scroll through next/previous posts of ONLY the same category?
January 9, 2017 at 8:16 pm #731269to have side navigation with next prev arrows only in one category you have to place in your child-theme functions.php :
add_filter('avia_post_nav_settings','avia_same_category_filter', 10, 1); function avia_same_category_filter($settings) { $settings['same_category'] = true; return $settings; }why you are not seeing them now i cannot say because i do not see the link to your site.
Maybe you are using on that post a fullwidth slider – for that case you can use in child-theme functions.php :add_filter('avia_post_nav_settings','avia_remove_fullwidth_slider_check', 10, 1); function avia_remove_fullwidth_slider_check($settings) { $settings['is_fullwidth'] = false; return $settings; }if you want to change the directions ( for me it is more logically when going to the right side it comes next entry ) :
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']); $entries['next'] = get_previous_post($settings['same_category']); return $entries; }January 9, 2017 at 8:50 pm #731285Hi!
@Guenni007 provided once again a detail reply.
Do let us know if it works or you need anything else from us, so we can be able to help you further.Thank you very much
Regards,
BasilisJanuary 10, 2017 at 1:31 pm #731543by the way – this snippet should be part of the enfold documentation – because the question occurs frequently
and btw 2 : the theme demo theme options download should be updated – only 10 of 26 are available yet
-
AuthorPosts
- You must be logged in to reply to this topic.
