-
AuthorPosts
-
September 26, 2016 at 7:30 pm #691902
Hi,
I need to remove Post Navigation buttons from the code, (not a Display:none solution please)
I found a solution were the functions-enfold.php was edited, but this far from ideal when updating the theme.
Is there a code snippet i can use in my function.php file of my child theme to disable post navigation?Thanks!
September 26, 2016 at 9:03 pm #691946Hey Retaguardia!
Please provide us a link to the page with a screenshot of the elements you want to remove
so we can be able to help you out.Thanks a lot for your understanding
Regards,
BasilisSeptember 28, 2016 at 10:45 am #692551I’m working locally so I just can upload an image, I added the link as private content
Post Navigation is also present when creating a Custom Post Type (loop-page), I would like to get ride of it only in my CPT but I’m fine removing it completely
Thanks
September 30, 2016 at 1:23 pm #693696Hi,
Please add following code to Functions.php file in Appearance > Editor
add_filter('avia_post_nav_entries','avia_remove_post_nav', 10, 1); function avia_remove_post_nav() { return false; }Best regards,
YigitJune 18, 2020 at 10:58 am #1223642As this is one of the top Google search results for how to remove the Enfold Post Navigation / Previous / Next Buttons:
You should use this code with more recent versions of Enfold instead to prevent PHP Warnings:/* Remove Post navigation */ function custom_disable_avia_post_nav( $settings ) { $settings['skip_output'] = true; return $settings; } add_filter( 'avf_post_nav_settings', 'custom_disable_avia_post_nav', 10, 1 );June 18, 2020 at 11:15 am #1223645Hi,
Thanks for sharing, Jan!
We have added it to our docs as well – https://kriesi.at/documentation/enfold/blog-post/#remove-post-navigation :)Best regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.
