-
AuthorPosts
-
June 13, 2016 at 9:21 am #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.June 13, 2016 at 11:19 am #647276Hi @gemac-fieldbus ;
This topic “Remove Post Navigation for a post type” from Enfold Documentation may help youJune 13, 2016 at 11:26 am #647277Thank 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!June 13, 2016 at 1:20 pm #647346Hey!
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 > Editorfunction no_post_nav($entries) { return false; } add_filter('avia_post_nav_entries','no_post_nav');Best regards,
Yigit-
This reply was modified 9 years, 4 months ago by
Yigit.
June 14, 2016 at 9:34 am #647867Hey Yigit,
your code cuts out the navigation but brings up this errorWarning: 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.
June 14, 2016 at 10:41 am #647884Hi,
Please confirm if this is working for you now?
Let us know if you have any questions.
Best regards,
VinayJune 14, 2016 at 1:58 pm #647990Yes Vinay, it is working now.
thank you for your professional help!June 14, 2016 at 2:07 pm #647999Hi!
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 -
This reply was modified 9 years, 4 months ago by
-
AuthorPosts
- The topic ‘getting rid of buttons to next or previous article’ is closed to new replies.
