Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #647236

    Dear experts.

    There are the buttons left and right to jump to the next or previous article (shown on blog articles).
    I want to get rid of this. I did not found any option to control it.
    Please give me a hint on this.

    #647276

    Hi @gemac-fieldbus ;
    This topic “Remove Post Navigation for a post type” from Enfold Documentation may help you

    #647277

    Thank you!
    I guess this might work perfect with portfolio items.
    I could figure out that I have to modify this to the following:

    function no_post_nav($entries)
    {
        if(get_post_type() == 'post') $entries = array();
        return $entries;
    }
    
    add_filter('avia_post_nav_entries','no_post_nav');

    wich works fine.
    Thank you very much!

    #647346

    Hey!

    Glad @begrafiks could help! Let us know if you have any other questions or issues :)

    @begrafiks
    , thank you sir! :)

    Edit: Misread it :)
    Please add following code to Functions.php file in Appearance > Editor

      function no_post_nav($entries)
      {
          return false;
      }
    
      add_filter('avia_post_nav_entries','no_post_nav');

    Best regards,
    Yigit

    • This reply was modified 8 years, 1 month ago by Yigit.
    #647867

    Hey Yigit,
    your code cuts out the navigation but brings up this error

    Warning: Invalid argument supplied for foreach() in /www/htdocs/w0148105/gemac-fieldbus.com/wp-content/themes/enfold/functions-enfold.php on line 406

    I tried it the way metioned above and this works.

    #647884

    Hi,

    Please confirm if this is working for you now?

    Let us know if you have any questions.

    Best regards,
    Vinay

    #647990

    Yes Vinay, it is working now.
    thank you for your professional help!

    #647999

    Hi!

    You are welcome!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘getting rid of buttons to next or previous article’ is closed to new replies.