- This topic has 18 replies, 4 voices, and was last updated 4 years, 2 months ago by
Fernando.
-
AuthorPosts
-
March 22, 2022 at 10:15 am #2163775
Jeffrey
I am looking to create a button that acts like the sticky navigation, but without the menus.
I included a site example
March 22, 2022 at 10:20 am #2163779Leo
StaffCustomer SupportHi there,
You could consider a solution similar to this one:
March 22, 2022 at 10:49 am #2163801Jeffrey
Thats nice, but I am looking to have the exact behavior of the sticky menu navigation.
Is there a way to hide the menu and logo on the sticky dropdown for certain pages? (and possibly make the background transparent) Therefore only showing the button on certain pages/posts?
March 22, 2022 at 11:05 am #2163814Ying
StaffCustomer SupportIs there a way to hide the menu and logo on the sticky dropdown for certain pages?
Yes, that’s possible with custom CSS.
Can you enable sticky navigation and link us to your site?
March 22, 2022 at 11:21 am #2163818Jeffrey
Ok, its enabled.
I currently have the color as (empty) transparent, would it be possible to just make it transparent by CSS also on the same pages.
This why I could still style the nav for other areas.
Also there is a feint (really light) line at the bottom of the sticky nav, could that be made transparent too?
March 22, 2022 at 11:28 am #2163823Ying
StaffCustomer Supportwould it be possible to just make it transparent by CSS also on the same pages.
Yes, it’s possible with CSS. You can set the colors in customizer now for pages don’t need the floating button.
I’m not seeing a sticky navigation on desktop, do you only want it on mobile?
Let me know 🙂
March 22, 2022 at 11:36 am #2163830Jeffrey
It says its on for both?
March 22, 2022 at 11:42 am #2163838Ying
StaffCustomer SupportHum.. I can see it’s been activated in customizer, but something is preventing the JS to load on desktop.
Can you try disable all your plugins except GP premium to eliminate conflicts from other plugins?
And if you are using a child theme, switch to the parent theme to test.
Let me know.
March 22, 2022 at 11:49 am #2163846Jeffrey
I was making some changes. Please look again
March 22, 2022 at 12:10 pm #2163864Ying
StaffCustomer SupportTry this:
.page-id-29 #sticky-navigation .navigation-branding, #sticky-navigation .main-nav { display: none; } .page-id-29 #sticky-navigation { background-color: transparent; box-shadow: none; } .page-id-29 nav#sticky-navigation > .inside-navigation { justify-content: flex-end; } .page-id-29 #sticky-navigation .gb-button-wrapper { margin-top: 10px; }March 22, 2022 at 12:37 pm #2163897Jeffrey
Perfect! Thank you 🙂
Now how can I choose what pages to disable the sticky menu on.
I tried:
#sticky-navigation { display: none; }but it didn’t work.
Is this possible? Like to choose which pages I want to use the sticky menu on, and which pages I don’t?
March 22, 2022 at 12:48 pm #2163912Jeffrey
wait figured it out 🙂
March 22, 2022 at 1:18 pm #2163925Ying
StaffCustomer SupportThe
.page-id-29is targeting the page you linked, so the CSS will only work on that page.If you want to target other page, for example the Pricing page, it’s
.page-id-40which can be found in its body tag:https://www.screencast.com/t/DpfJk8psaYou can open the developer tool by pressing F12.
So if you want to target the homepage and the pricing page, add
.page-id-40to every CSS. eg:.page-id-29 #sticky-navigation .navigation-branding, #sticky-navigation .main-nav { display: none; }to:
.page-id-29 #sticky-navigation .navigation-branding, #sticky-navigation .main-nav, .page-id-40 #sticky-navigation .navigation-branding, #sticky-navigation .main-nav { display: none; }March 22, 2022 at 2:30 pm #2163986Jeffrey
Interesting.
Is there a way to have it disappear when getting to the footer?
As in the sticky only displays up until the footer area starts?
March 22, 2022 at 3:14 pm #2164035Ying
StaffCustomer SupportIs there a way to have it disappear when getting to the footer?
I don’t think there’s an easy way to achieve this, custom development is required to write your own JavaScript.
Unless you are willing to give up the transition effect, then we can use CSS to achieve this.
-
AuthorPosts
- You must be logged in to reply to this topic.