Site logo

Archived topic

Post Nav in Page Header (GP 1.4)

6 replies · Started by Ophir on August 3, 2017

Viewing posts 1–7 of 7

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!

Hi there,

Glad you're enjoying it!

Not yet - but I will be looking into adding those elements in an update :)

I 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!!!!!!!

Yo, 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' );
    }
}

Are you wanting to do this as a template tag inside the new Page Header?

I 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!

This archived topic is closed to new replies.