- This topic has 25 replies, 4 voices, and was last updated 4 years, 10 months ago by
Ying.
-
AuthorPosts
-
March 1, 2021 at 8:35 am #1677588
Alexander
Hi! I wonder is it really possible to replace drop-down submenu in left-side navigation with another sliding out panel like in the project provided? If yes, could you please help me out?
March 1, 2021 at 10:36 am #1677750Ying
StaffCustomer SupportHi Alex,
I’m not sure I fully understand your question here, are you saying you want the sub menu be replaced by GP’s off canvas panel?
Unfortuanly I don’t think that’s doable, off canvas panel is another set of independent menu.
March 1, 2021 at 10:45 am #1677760Alexander
I would like the sub menu to be on another independent panel that appears on the right
https://paste.pics/BQT23March 1, 2021 at 11:12 am #1677802Ying
StaffCustomer SupportAre you wanting the submenu to move to the right like this?
https://www.screencast.com/t/LDfW3sQgeCMarch 1, 2021 at 11:20 am #1677811Alexander
Sorry for being not explanatory enough, I’d like it to work exactly like on these site.
March 1, 2021 at 12:09 pm #1677868Ying
StaffCustomer SupportAh I see, yes, it’s possible 🙂
If you already have your vertical menu set up, we can have a look to your site and point the direction with CSS solution.
March 2, 2021 at 6:20 am #1678689Alexander
Hi again! I’ve just set up the site and its vertical menu. You’ll find the access below as it’s under construction mode.
March 2, 2021 at 1:55 pm #1679442Ying
StaffCustomer SupportGive this CSS a try:
@media (min-width: 1000px) { .site-header { overflow: visible; } .main-navigation:not(.toggled) ul li.sfHover>ul, .main-navigation:not(.toggled) ul li:hover>ul { left: 200px; display: flex; flex-flow: column nowrap; top: 0; } .main-navigation:not(.toggled) ul li.sfHover>ul:before, .main-navigation:not(.toggled) ul li:hover>ul:before { content: ""; background-color: #323538; z-index: 0; position: absolute; top: -100vh; left: 0; width: 240px; height: 200vh; } }March 3, 2021 at 3:04 am #1679980Alexander
March 3, 2021 at 3:28 am #1680002David
StaffCustomer SupportHi there,
try adding this CSS to rotate the icon:
.gp-icon.icon-arrow { transform: rotateZ(270deg); top: 3px; position: relative; }May 19, 2021 at 6:26 am #1789546Sergio
Hi!
I´m trying to do the same effect but the CSS code doesn´t do the work…
The website is https://wordpress-507255-1841118.cloudwaysapps.com/
I have tried the code above:
@media (min-width: 1000px) {
.site-header {
overflow: visible;
}.main-navigation:not(.toggled) ul li.sfHover>ul, .main-navigation:not(.toggled) ul li:hover>ul {
left: 200px;
display: flex;
flex-flow: column nowrap;
top: 0;
}
.main-navigation:not(.toggled) ul li.sfHover>ul:before, .main-navigation:not(.toggled) ul li:hover>ul:before {
content: “”;
background-color: #323538;
z-index: 0;
position: absolute;
top: -100vh;
left: 0;
width: 240px;
height: 200vh;
}
}Thanks in advance
May 19, 2021 at 7:31 am #1789868David
StaffCustomer SupportHi there
can you make sure the Navigation Drop Down option is set to Hover in Customizer > Layout > Primary Navigation.
May 19, 2021 at 8:26 am #1789976Sergio
David,
You are the best. That was the problem.
But now…
The submenu appears correctly but doesn’t stay fixed…
It disappears when I try to access any subitem…May 19, 2021 at 9:42 am #1790095Ying
StaffCustomer SupportHi Sergio,
Try to add this CSS as well:
.site-header .main-navigation li a:before { content: ""; position: absolute; width: 60px; height: 100%; top: 0; left: 100%; }May 19, 2021 at 9:52 am #1790111Sergio
Yes!!!!
Works perfectly now
The best support forum ever.
Thank you very much! -
AuthorPosts
- You must be logged in to reply to this topic.