Tagged: whitespace
Hello,
I’m trying to set a small whitespace between the top navigation menu and the first element, but negative values don’t seem to work.
For example I would need white space between the nav menu and the first slider on this page:
and between the nav menu and the photo/bio section on this page:
I tried the solution proposed in thread below (added to the custom css in the child theme) but it doesn’t work:
https://kriesi.at/support/topic/whitespace-separator-height-will-not-change/
Thank you in advance for your help!
Hi Mike,
Thanks for the answer.
The code works, but adds space on every page. Is it possible to target a specific page, like when adding a whitespace separator element?
In the above example, I’m interested to have more space only on the Home and About pages.
Thank you in advance!
Hi,
Yes you can target specific pages, but you will need the page-id class in order to do so. You can inspect the page in question in your browser and you will find the class in the body tag. You can then use CSS like this:
.page-id-123 #main {
padding-top: 316px !important;
}
Just replace the example page-id class with your own.
Best regards,
Rikard
Hi Rikard,
This works!
Thanks a lot and have a nice day:)
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon