- This topic has 14 replies, 3 voices, and was last updated 3 years, 6 months ago by
Ying.
-
AuthorPosts
-
March 3, 2022 at 4:19 am #2140606
Adrien
Hello Team,
I have a bug on my submenu with hover option enabled. When I click the main menu it combines both option: show on hover and show on click.
I’d like to only hover to show submenu and even if people click when you hover out I’d not like to see the submenu staying.
I made this quick video to show you my issue: https://www.awesomescreenshot.com/video/7697075?key=23406932f8b146c63e41a2e469fe91caPlease note that im on PHP 8.
Thank you.
March 3, 2022 at 4:46 am #2140639David
StaffCustomer SupportHi there,
thanks for the video ๐
Can you disable ALL optimization plugins ( eg. Perfmatters etc. ) and clear any caches so i can then take a closer look?March 4, 2022 at 2:58 am #2141897Adrien
Hello @David, all were already disabled ๐ You may take a look when you can.
Thanks for your help.March 4, 2022 at 5:04 am #2142039David
StaffCustomer SupportCan you remove the GP Premium plugin and reinstall a new copy from your Account > Downloads ?
March 4, 2022 at 5:18 am #2142052Adrien
Done but the bug is still there. I’ve even done a complete debug. I removed all plugins except GP/GP. Ive also tried removing all my elements.
March 7, 2022 at 8:03 am #2145590Adrien
Hello @david. Just in case you forgot me ๐
March 7, 2022 at 8:51 am #2145643David
StaffCustomer SupportSorry we missed your last reply.
Can you provide us with a temporary admin login so we can take a closer look?March 7, 2022 at 9:01 am #2145655Adrien
Sure @david. I have enclosed to this message my WP credentials.
Appreciate your help.
March 7, 2022 at 9:40 am #2145697David
StaffCustomer SupportCan you check the login URL as that is not working for me – it just redirects to the home page
March 7, 2022 at 9:52 am #2145711Adrien
Oh my bad @david. Sorry ive sent the correct one.
March 7, 2022 at 10:12 am #2145736David
StaffCustomer SupportCan you disable ALL of the opimization plugins ?
March 7, 2022 at 10:22 am #2145746Adrien
done. LSCP we already off. I switched off Perfmatters.
March 7, 2022 at 10:44 am #2145776Ying
StaffCustomer SupportHi Adrien,
It is the normal behavior, it looks odd because you’ve added some style to the submenu on hover.
Options 1: Add the same style to
sfHover
state (click) submenu as well.
So change this CSS:@media (min-width: 769px) { .main-navigation:not(.toggled) ul li:hover>ul { border-radius: 8px; padding: 18px; box-shadow: 0px 0px 14px 4px rgb(0 0 0 / 10%); } }
to:
@media (min-width: 769px) { .main-navigation:not(.toggled) ul li:hover>ul, .main-navigation:not(.toggled) ul li.sfHover>ul { border-radius: 8px; padding: 18px; box-shadow: 0px 0px 14px 4px rgb(0 0 0 / 10%); } }
Option 2: Ignore the
sfHover
state (click).
Add this CSS:.main-navigation:not(.toggled) ul li.sfHover:not(:hover)>ul { opacity: 0 !important; height: 0; left: -99999px; visibility: hidden; } .main-navigation:not(.toggled) ul li.sfHover:not(:hover)>a { color: var(--base-3); }
Let me know if this helps ๐
March 8, 2022 at 5:23 am #2146551Adrien
Dear Ying,
It worked perfectly. I chose option 1 ๐
Thank you very much for your help.
March 8, 2022 at 10:19 am #2147080Ying
StaffCustomer SupportYou are welcome Adrien ๐
-
AuthorPosts
- You must be logged in to reply to this topic.