Site logo

Archived topic

Missing space between title of blog and prev/back navigaton.

8 replies · Started by Konstantin on August 15, 2021

Viewing posts 1–9 of 9

Hello
On my page edition21.mini-sabbatical.ch I like to have a foreward/backward navigation on the blog entry itself. After an update of generatepress (?) the gap between the title and the foreward/backward link disappeard. Below the CSS and PHP code I have in place for it.
BR Konstantin

add_action( 'generate_after_entry_title', 'tu_move_post_navigation' );
function tu_move_post_navigation() {
if ( function_exists( 'generate_content_nav' ) && is_single() ) {
generate_content_nav( 'nav-below' );
}
}

add_filter( 'generate_category_post_navigation','generate_force_category_post_navigation' );
function generate_force_category_post_navigation()
{
return true;
}

.entry-title {
text-align: center;
}

.entry-meta #nav-below {
display: none;
}

.nav-previous .prev:before {
display: none;
}

.nav-next .next:before {
display: none;
}

.nav-previous {
float: left;
}

.nav-next {
float: right;
}

Hi there,

if you go to Customizer > Typography > Headings and increase the Bottom Margin of the H1 Entry Title. Its currently has no value. Set it to 2em or something.

Hello David
The value is set there to 20px. But increasing it doesn‘t has any effect.
…?
BR Konstantin

Hello David
The value is set there to 20px. Strange is, that increasing it doesn‘t have any effect.
…?
BR Konstantin

Did you change the Single Content Title (H1) settings ?

Hello David
I cannot change it at single content title, there are sliders only ‚font size‘ and ‚line height‘.
br K

I assume you have a function that is moving the prev/next navigation below the H1.
So its going to require a little CSS to fix:

h1.entry-title {
    margin-bottom: 20px;
}

This works perfect!
Thank you very much for your support.

Glad to be of help

This archived topic is closed to new replies.