Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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!

    #691946

    Hey 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,
    Basilis

    #692551

    I’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

    #693696

    Hi,

    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,
    Yigit

    #1223642

    As 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 );
    #1223645

    Hi,

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.