- This topic has 20 replies, 3 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
March 2, 2023 at 9:50 am #2553062
Yohann
Hello, I use page hero header and sticky navigation.
I would like a bloc to be sticky under the header when scrolling down
How can I do this ?
Thank youMarch 2, 2023 at 1:59 pm #2553326David
StaffCustomer SupportHi there,
can you share a link to where we can see the block ?
March 3, 2023 at 4:12 am #2553884Yohann
you can see it on This page : page test
I want to 2 item to be sticky inter the header when scrolling down on desktop and mobile
Thank you for your help.March 3, 2023 at 6:03 am #2554002David
StaffCustomer SupportWhich items will be sticky ?
March 3, 2023 at 7:14 am #2554067Yohann
both of them ‘besoins” “solutions”
March 3, 2023 at 12:41 pm #2554521Ying
StaffCustomer Support1. You’ve added the class
.my-sticky-elementto the block, but the.should not be included, please remove the..2. Then you can add this CSS to make theme sticky:
.my-sticky-element { position: sticky; top: 130px; z-index: 10000; }3. But you have this CSS which prevents elements to be sticky, you’ll have to remove this CSS.
html, body { overflow-x: hidden; }4. The off canvas menu also adds this CSS which causes the same issue as no.3:
.offside-js--init { overflow-x: hidden; }You will have to add this CSS to override it:
body { overflow-x: unset !important; }March 4, 2023 at 12:38 pm #2555704Yohann
It works only on desktop. Can you fix it on mobile also?
Thank youMarch 4, 2023 at 12:48 pm #2555715Ying
StaffCustomer SupportWhen I check, it works on mobile, make sure your mobile browser cache is cleared, or try checking on another mobile device.
https://www.screencast.com/t/jsb2L6FNbNZZMarch 4, 2023 at 12:55 pm #2555719Yohann
No it is not sticky on mobile …
March 4, 2023 at 6:05 pm #2555864Ying
StaffCustomer SupportSorry, got it mixed with another topic.
It doesn’t work either on desktop or mobile, I can see you’ve fixed the
.issue in the class, but I’m not seeing the CSS being added to your site which is step 2 of my reply here: https://generatepress.com/forums/topic/sticky-block-when-scrolling-down/#post-2554521Can you try disabling the cache plugin?
March 9, 2023 at 4:37 am #2561344Yohann
Thank you, it works.
But I used this code to prevent horizontal moving of the page on mobile :html, body {
overflow-x: hidden;
}So as I removed this code, do you know how I could fix this problem ?
Thank you,
March 9, 2023 at 4:37 am #2561346Yohann
Thank you, it works.
But I used this code to prevent horizontal moving of the page on mobile :html, body {
overflow-x: hidden;
}So as I removed this code, do you know how I could fix this problem ?
Thank you,
March 9, 2023 at 5:09 am #2561375David
StaffCustomer SupportWhere was the horizontal movement occurring as i don’t notice it on the URL you shared?
March 9, 2023 at 5:27 am #2561398Yohann
March 9, 2023 at 6:52 am #2561492David
StaffCustomer SupportHow is the visual composer content added to the site ?
As it looks to be that content creating the issue. -
AuthorPosts
- You must be logged in to reply to this topic.