Archived topic
disabling Theme Post navigation, without disabling elementors Post navigation
19 replies · Started by Dominic on December 14, 2017
with the recent blog post widget update I want to use elementors post navigation instead the theme navigation. but when I disable the theme single post navigation, elementors navigation gets disabled aswell.
Try this function:
add_action( 'after_setup_theme', 'tu_remove_post_navigation' );
function tu_remove_post_navigation() {
add_filter( 'generate_show_post_navigation', '__return_false' );
}
I added the function (with the my custom functions Plugin) but the problem still exsists.
And the post navigation is enabled in the Customizer?
yes, its the same as before. either post single post navigations are enabled or both disabled. where do I insert function without plugin? in the GP folder into the functions.php?
You would insert it using one of these methods: https://docs.generatepress.com/article/adding-php/
no, still doesnt work
Can you link me to one of the pages with the issue?
here
currently I have turned the function off, but if its important, I will turn it on
So right now you have the GP post navigation enabled, and nothing else?
Where is the Elementor post navigation supposed to be?
navigation enabled
[URL=http://www.directupload.net/file/d/4940/3g9diyc5_jpg.htm][IMG]http://fs5.directupload.net/images/171218/temp/3g9diyc5.jpg[/IMG][/URL]
navigation disabled
[URL=http://www.directupload.net/file/d/4940/lkylcrkx_jpg.htm][IMG]http://fs5.directupload.net/images/171218/temp/lkylcrkx.jpg[/IMG][/URL]
with your function code I have the same result. either both enabled or both disabled
added the code
Ah, that filter was introduced in GP 2.0, so you'll need to update.
ok thx. I was waiting for a plugin update but realized that I have to update the theme.
did the speed optimizing recommentadtions change after the update or are they still valid?