Archived topic
Space between main navigation and main content
5 replies · Started by Henk on October 9, 2021
Hello,
I just added some code to insert breadcrumbs with a hook.
The code inserted with the hook is: <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>.
And as a hook I use generate_before_main_content. This works perfectly.
But now the space / height between de site logo and the content page is too large.
How can I reduce the height of this space?
Thanks in advance for your help.
Kind regards, Henk.
Hi there,
you can remove the Top Padding in Customizer > Layout > Container.
Thanks David.
Searched about two hours, you saved my Saturday afternoon.
Glad to be of help.
As a note for the future - if you're building Full Width pages you can set the Content Container to Full Width:
https://docs.generatepress.com/article/content-container/
This gives you a full width page, and removes all the Themes padding.
Nice forward thinking of you.
I have indeed some thinks to solve, and I also spend a lot time to solve margins in order to get a good alignment.
Glad to be of help