-
AuthorPosts
-
February 27, 2015 at 9:27 pm #403663
In this topic
https://kriesi.at/support/topic/can-i-use-the-navigation-arrows-for-each-category-not-all/
Dude gives some code to make the navigation arrows keep within a category.add_filter('avia_post_nav_categories', 'use_same_category_filter'); function use_same_category_filter($same_category) { $same_category = true; return $same_category; }
As instructed, I have added it to the bottom of my child theme functions.php. (In fact it is the only thing I have added to my functions.php.) However, nothing happens. The arrows still move from one post to another regardless of category.
I should add that I have no idea how to edit these arrows. Some of my posts have them, some don’t. I don’t know “where” they are! Are they in a page? Or some file of code?
Also, is there any way to make the right (forwards) arrow appear at the right edge of the post, not at the right edge of the whole screen (on the sidebar)?
March 2, 2015 at 4:04 am #404236Hi Geoff!
on the link you have posted Dude is saying that it seems that it’s not possible: https://kriesi.at/support/topic/can-i-use-the-navigation-arrows-for-each-category-not-all/#post-127411
But did you try the solution with the “smarter navigation plugin” some posts later? Here you go: https://kriesi.at/support/topic/can-i-use-the-navigation-arrows-for-each-category-not-all/#post-127414
If that doesn’t work for you, I think you would need to hire a freelancer for this.
Feel free to make a feature request for Kriesi here: https://kriesi.at/support/enfold-feature-requests/
Best regards,
AndyMarch 3, 2015 at 5:08 pm #405247Oh, thanks for pointing out the plugin Andy. In the meantime, Ismael gave me this code which works perfectly:
add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod'); function avia_post_nav_settings_mod($settings) { $settings['is_fullwidth'] = false; $settings['same_category'] = true; return $settings; }
I apologize if it looks like I started two threads for one question, but Ismael’s suggestion came up in discussing the formatting of categories in general.
Thanks to you both
-
AuthorPosts
- The topic ‘How to adjust category post navigation?’ is closed to new replies.