Archived topic
Secondary menu mobile hight doubles unintended
7 replies · Started by Andreas Koller on September 27, 2021
Hi
The secondary menu bar unintentionally doubles the height in mobile view. If the top bar is activated, it does not happen. If the top bar is set to merge with navigation then it happens.
Thanks for your help!
Hi there,
Looks like you have an empty paragraph widget added in the top bar widget area:
https://docs.generatepress.com/article/top-bar-widget-area/
Can you try removing that first?
Let me know :)
Thanks, that worked. I missed the empty widget.
No problem :)
Hi Leo
That problem seems to belong to the same topic, but I can't find any empty widget: I have a blank space below the Top Bar widget. It seems to belong to the Top Bar widget. I reduced all the spacers but the blank space still exists.
Hi there,
Are you pertaining to the blank space highlighted in orange here?
https://share.getcloudapp.com/nOu55Ad5
If that's the case, that's caused by the default margin bottom for paragraphs added by WordPress Core CSS.
You can try removing this margin by adding this CSS:
aside#block-16 p {
margin-bottom: 0;
}
Expected result - https://share.getcloudapp.com/2NuPPgJ7
Hi Elvin
The unwanted spacer disapeared with your CSS, problem solved, thanks a lot!
No problem. :D