- This topic has 23 replies, 4 voices, and was last updated 3 years, 9 months ago by Leo.
-
AuthorPosts
-
June 30, 2020 at 1:26 pm #1347480Jeffrey
I would like to be able to hide the header while on the BP template pages, however I still want to have the scroll effect where it comes down (header) when moving back to the top of the page. But then when reaching the top, have it disappear again.
Would love the help ๐
June 30, 2020 at 2:48 pm #1347526TomLead DeveloperLead DeveloperHi there,
You should be able to use this code: https://docs.generatepress.com/article/show-sticky-navigation-only/
However, you’ll need to add
.buddypress
in front of the selectors so it only targets BP templates.June 30, 2020 at 11:07 pm #1347750Jeffreyok, that def worked, but unfortunately it didn’t give the desired effect. Is there a way to add another identical header with shopping cart, minus the navigation menu?
If that makes sense.July 1, 2020 at 6:45 am #1348128DavidStaffCustomer SupportHi there,
try this CSS:
.buddypress #site-navigation:not(.navigation-stick) .main-nav ul li:not(.wc-menu-item) { visibility: hidden; }
July 1, 2020 at 9:07 am #1348481JeffreyMaybe I explained it wrong. I would like an additional identical header with shopping cart, minus the navigation menu. So basically 2 different headers on one page.
One scroll with nav
One at the top with no navSo the first solution worked, but I want more.
I guess I always want more.. (shrugs shoulders) ๐
July 1, 2020 at 11:15 am #1348665DavidStaffCustomer SupportThat CSS should hide all the Menu items apart from the Shopping cart when the menu is at the Top. Try it without the
.buddypress
selectorJuly 1, 2020 at 12:03 pm #1348705Jeffreyworks for template, but not buddypress, just installed youzer templates, thats prob messing with it, although the first piece of css worked great.
I’ll see if i ca find more info.
July 1, 2020 at 8:49 pm #1348961JeffreySo it works perfectly when I remove the .buddypress tag, just on every page. The tag worked for the other piece of code so I believe its correct. Any suggestions?
July 2, 2020 at 3:54 am #1349213DavidStaffCustomer SupportIs it possible to see one of the bb pages where my code should work ?
July 2, 2020 at 8:11 am #1349612JeffreyI had sent the login through contact the other day, where should I send it now?
July 2, 2020 at 10:20 am #1349764DavidStaffCustomer SupportSorry we don’t keep peoples login details for very long for security reasons. Can you resend them via the Account Issue form:
https://generatepress.com/contact/
Please add the URL of this topic to the form so we can track.
July 2, 2020 at 2:53 pm #1349923TomLead DeveloperLead DeveloperHi there,
It all seems to be working for me. Is there a specific page I should visit to see it not working?
July 2, 2020 at 4:14 pm #1349968JeffreyThe buddypress templates. I didn’t have the code up, Just put it back. Works on all other pages well without the
.buddypress
tag. Wnen the tag is applied it does not work.July 3, 2020 at 6:43 am #1350511DavidStaffCustomer SupportRemove all the CSS that Tom and I provided. And add this:
.buddypress #site-navigation:not(.navigation-stick) .main-nav ul li:not(.wc-menu-item) { display: none; }
Tested in browser developers tools and it works ( but so did the others lol )
July 3, 2020 at 7:50 am #1350707JeffreyYES!!!!! I bow to you gurus!
-
AuthorPosts
- You must be logged in to reply to this topic.