- This topic has 9 replies, 3 voices, and was last updated 6 months, 3 weeks ago by
David.
-
AuthorPosts
-
September 7, 2022 at 5:30 am #2335852
Vlastimil
Hi, I have some CPT archives and want to use simple below navigation ‘previous’ and ‘next’ for all of them, including posts. I found out that in inc/structure/post-meta.php there’s a navigation for previous and next but it’s hidden in some situations (unfortunately in that situations, that I need). Additionally there’s the numbered navigation called by
if ( function_exists( 'the_posts_pagination' ) ) { the_posts_pagination(
which cannot be turned off by hook or by function overloading (because the_posts_pagination is core function).
So. Why is the simple nav hidden by default (main.css:759)? Is there a way, that I’m not able to see, to turn off (not hide by css) the numbered nav?
thank you for some kind of help
September 7, 2022 at 5:10 pm #2336429Fernando Customer Support
Hi Vlastimil,
You may use a Post Navigation – Block Element: https://docs.generatepress.com/article/block-element-post-navigation/
You can also try this filter:
add_filter( 'generate_show_post_navigation', '__return_false' );
September 8, 2022 at 1:44 am #2336703Vlastimil
Hello
Fernando,thank you very much, that’s very helpful. Actually I’ll use Archive Navigation but I didn’t find how to specify the link label for dynamic data in Headline. There’s a Title (‘Hello World’ as dummy text) and other options in Dynamic Text Type but I’d like to use ‘Previous projects’ etc.
Thanks for help
September 8, 2022 at 1:57 am #2336720Fernando Customer Support
You’re welcome Vlastimil!
September 8, 2022 at 2:26 am #2336745Vlastimil
Ok, so please the last thing – how to setup the label for links (please see my previous response)?
thank you
September 8, 2022 at 3:59 am #2336837David
StaffCustomer SupportHi there,
for now you will need to use a GB Button, with those you can add a static label and set a dynamic link.
Whereas Headlines, the GP Dynamic Data options you have to have a dynamic label to have a dynamic link.In the future the GenerateBlocks Dynamic Data options will have Next / Previous posts as its Content sourec.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 8, 2022 at 4:13 am #2336848Vlastimil
Hi David, thanks for your answer, I understand. Even if I use GB button and set up a static label, the result is dynamically modified. So I use ‘Previous projects’ with button, but the result is ‘projects’ because that’s the CPT name. With other words – it’s the same with GB button as with Headline.
The Dynamic text type combo does not have a ‘custom text’ option in both situations and the button label is being overwritten.
Any other chance or am I doing something wrong..?
thank you
September 8, 2022 at 6:46 am #2336989David
StaffCustomer SupportFor the Buttons if you use the GP Dynamic Data ( which is only there in Elements ) then you can do this to a GB Button:
So we only set the Dynamic Link and we leave the Dynamic Text Type empty. Then it will keep whatever text you added in the button
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 9, 2022 at 12:43 am #2337689Vlastimil
Well, that works. So I must not to choose text type, ok.
David, thanks for your help!
September 9, 2022 at 3:17 am #2337815David
StaffCustomer SupportGlad to be of help!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.