- This topic has 6 replies, 3 voices, and was last updated 6 years, 8 months ago by Tom.
-
AuthorPosts
-
August 3, 2017 at 9:28 am #359169Ophir
Enjoying the new Page Headers in 1.4 (RC).
I’ve setup a nicely formatted post header with background image, etc.
I’m wondering, is there a clever/simple way to get .nav-previous and .nav-next from the bottom, into the post page header?
Thanks!
August 4, 2017 at 12:57 am #359547TomLead DeveloperLead DeveloperHi there,
Glad you’re enjoying it!
Not yet – but I will be looking into adding those elements in an update ๐
August 11, 2017 at 11:49 am #364112freeform1999I too would LOVE more design control of post-navigation and to put it in the post header.
It seems there is many plugins or tweaks to various WP structure areas but not for post-navigation for some odd reason. (Fwiw, I just bought GP Premium mainly so I might get help with this need.)Currently, on some art gallery sites I make for clients I put the post-navigation on the same horizontal space as the post-title but aligned right. I just use something short like ” <<previous Projects next>>”, (sometimes I put a little ‘grid looking icon’ instead of the word ‘projects’ that when clicked on goes to a page with a gallery of thumbnails of all the projects’ (Tom, if you want to see a site I made as an example can I give a private link?)
Hmmm, until update how can I best achieve this now?
THX!!!!!!!August 11, 2017 at 12:26 pm #364146freeform1999Yo, I just found an older thread with code form Tom related to all this!… You gave code I’ll add here at bottom.
But this code put’s the post-navigation above the post-title but as mentioned above I want it on same line, (I suppose if it was under the post-title I could css it with block align etc)…
Also I’d want to change the ‘previous/next’ words
and add the icon link between them (as mentioned in my post above)…THANKS SO MUCH FOR ANY HELP!
===========
css:footer.entry-meta .post-navigation { display: none; }
code (I put in functions but maybe could be added to hooks to place it where I want?):
add_action( 'generate_before_content', 'tu_move_post_navigation' ); function tu_move_post_navigation() { if ( function_exists( 'generate_content_nav' ) && is_single() ) { generate_content_nav( 'nav-below' ); } }
August 12, 2017 at 12:17 am #364464TomLead DeveloperLead DeveloperAre you wanting to do this as a template tag inside the new Page Header?
August 12, 2017 at 12:26 am #364477freeform1999I think so… if I understand what that really means. ๐
Hmm, can I give you a private link to a site I managed to hack the behavior working but in a another theme?
thx!August 12, 2017 at 12:30 am #364479TomLead DeveloperLead DeveloperSure, you can use the contact form: https://generatepress.com/contact/
-
AuthorPosts
- You must be logged in to reply to this topic.