- This topic has 16 replies, 4 voices, and was last updated 1 year, 6 months ago by
David.
-
AuthorPosts
-
January 13, 2021 at 1:03 pm #1617655
Victor
Hi!
When I scroll down Primary Navigation Menu hides, the right sidebar is ok. The problem is when I scroll up and the menu resumes, it overlaps the sidebar.
I would like the right sidebar to move down (when I scroll up) so that the Primary Navigation Menu does not overlap the sidebar.
How can I solve this issue?
Thanks!
VictorJanuary 13, 2021 at 2:47 pm #1617733Leo
StaffCustomer SupportHi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 15, 2021 at 2:46 am #1619673Victor
Please check the private info field. Thanks.
January 15, 2021 at 6:38 am #1619905David
StaffCustomer SupportHi there,
you will need to increase the Top value in your CSS:
.sticky-block { position: -webkit-sticky; position: sticky; top: 5px; /* Increase value */ }
Without adding JS there is not way to make that change when the nav is sticky.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 15, 2021 at 7:31 am #1620145Victor
Thanks for your quick answer!
Is there a way to make the nav starts from 30% from the right side?
January 15, 2021 at 8:33 am #1620247David
StaffCustomer SupportYou can try this CSS so the sticky nav is only as wide as the main content:
@media(min-width: 769px) { #sticky-navigation { background-color: transparent; } #sticky-navigation .inside-navigation { margin-right: calc(20% - 20px); background-color: #fff; } }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 15, 2021 at 8:53 am #1620281Victor
Worked! Thanks for your support!
January 15, 2021 at 12:22 pm #1620541Victor
Hi! Could you please tell me how to hide this effect for certain pages (the ones that do not have sidebars)?
Thanks!
January 15, 2021 at 12:33 pm #1620550Ying
StaffCustomer SupportHi Victor,
You could add this selector
body.right-sidebar
in front of#sticky-navigation
with a space in between to only target the pages with right sidebar.Let me know π
January 15, 2021 at 2:39 pm #1620632Victor
Thanks, Ying! It worked great!
Last one…there is still a line at the bottom…how can take it out?January 15, 2021 at 5:43 pm #1620716Leo
StaffCustomer SupportI believe this CSS is what you are after:
.sticky-enabled .main-navigation.is_stuck { box-shadow: none; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 17, 2021 at 6:24 am #1622221Victor
That worked great Leo! Thanks for your amazing support!
January 17, 2021 at 10:25 am #1622646Leo
StaffCustomer SupportNo problem π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 28, 2021 at 1:49 am #1636586Victor
Hi!
Now the right sidebar is overlapping the footer when I scroll down till the very bottom.
Do you how to solve this issue?
I mean, make the bar move up when it reaches the footer…
Thanks!January 28, 2021 at 3:11 am #1636684David
StaffCustomer SupportYou can add some padding to the bottom of the right sidebar to stop that:
#right-sidebar { padding-bottom: 40px; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.