- This topic has 5 replies, 2 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
January 13, 2023 at 8:00 am #2494387
Lina
Hello,
I am working on some portfolio pages that were created with a custom post type, but I am having trouble with the navigation displayed on each individual portfolio page.
Problems:
– Each previous and next post appears with a double link
– Changing the overall look of the navigation links. I would like the navigation to look more prominent, perhaps with some arrows or icons, or something more visible.Where can all this be changed?
Thank you!
January 13, 2023 at 8:16 am #2494409Lina
Okay, I’ve followed the directions here to make the Previous and Next links appear on either side, which is what I wanted to accomplish – https://docs.generatepress.com/article/inline-post-navigation/
Would I be able to change the font and the arrow to a custom icon so that the navigation could look customized and more prominent?
Also, I still cannot figure out why the Previous and Next links are appearing doubled.
January 13, 2023 at 8:19 am #2494411David
StaffCustomer SupportHi there,
in your Code Snippets you have a snippet called:
Custom Post Type NavigationThat code contains:
add_action( 'generate_after_entry_content', 'tu_cpt_footer_meta' ); function tu_cpt_footer_meta() { if ( is_singular( 'portfolio' ) ) : ?> <footer class="entry-meta"> <?php generate_entry_meta(); ?> <?php generate_content_nav( 'nav-below' ); ?> </footer><!-- .entry-meta --> <?php endif; }The
generate_entry_meta();function displays any meta for the post, which includes thegenerate_content_nav.
So you can remove this<?php generate_content_nav( 'nav-below' ); ?>Alternatively you can remove that function entirely, and use Block Element to create the Post Navigation.
For example on the Scribe site from the site library:
https://gpsites.co/scribe/safely-planning-your-first-family-trip-abroad-in-years/
or Volume:
https://gpsites.co/volume/block-elements/
Let us know
January 13, 2023 at 8:48 am #2494456Lina
Oh, yes! I would like the second option, of just creating a block element, because then it will be completely customizable, correct?
In that case, would I just remove the “Custom Post Type Navigation” snippet entirely and build the navigation in a block element?
January 13, 2023 at 8:53 am #2494461Lina
Oh, it worked perfectly! Thank you very much, David. I will customize it however I want now.
January 13, 2023 at 9:49 am #2494516David
StaffCustomer SupportAwesome – glad you got that working!!
-
AuthorPosts
- You must be logged in to reply to this topic.