Site logo

Archived topic

When using sections - entry-title and post-navigation below disappear

5 replies · Started by Peter on April 15, 2018

Viewing posts 1–6 of 6

When I am using sections in a post, both entry-title and post navigation disappear.
Without sections everything looks fine.
What am I missing?

Sections is meant to remove everything on the page and let you build the content within the sections.

There would be no way to style those built in elements to match your sections if they existed on the page as well.

Let me know if you need more info :)

I see. Now I learnt something new.:-)
No problem with the entry-title.
I would like to do some posts with sections because different container widths are needed.
When using sections... is there a possibility of adding the previous-post/next-post navigation at the bottom of the post?

It would probably be better to use a shortcode, then add the shortcode into a section at the bottom of the post.

For example:

add_shortcode( 'post_navigation', 'tu_post_navigation_shortcode' );
function tu_post_navigation_shortcode() {
    ob_start();

    if ( function_exists( 'generate_content_nav' ) ) {
        generate_content_nav( 'nav-below' );
    }

    return ob_get_clean();
}

Then you can add [post_navigation] into a section.

That way the style of the page will remain consistent.

Works perfectly :-)

I am constantly impressed about functionality & versatility of GP. No page builder add-on needed.
And when the wall is hit, then there is this excellent and immediate support.
It simply can't be better!

Tnx a lot 4 all.

Thank you! Really appreciate that :)

This archived topic is closed to new replies.