- This topic has 12 replies, 2 voices, and was last updated 5 years, 6 months ago by
David.
-
AuthorPosts
-
July 13, 2020 at 9:51 pm #1362662
DM
Hi there!
Is there a plugin for image mapping that you recommend for GP? I want to have a collage image with multiple clickable URLs.
Also had another question on menus. Is there a built-in way to get the arrows next to the submenu to rotate sideways until moused over?
Thanks!
DMJuly 14, 2020 at 7:57 am #1363269David
StaffCustomer SupportHi there,
i am not sure about the image map plugin. Might be worth asking in our Facebook group.
https://www.facebook.com/groups/generatepress
For the submenu icons – try this CSS:
.menu-item-has-children .dropdown-menu-toggle:before { transition: all 0.2s ease-in-out; } .menu-item-has-children:not(:hover) .dropdown-menu-toggle:before { transform: rotatez(-90deg); transition: all 0.2s ease-in-out; }July 15, 2020 at 2:43 pm #1364936DM
Thank you, David!
Is there also a way to make the submenu drop at the same time that the arrow rotates?Thanks again!
DawnJuly 15, 2020 at 5:40 pm #1365029David
StaffCustomer SupportTry this so it rotates on click:
.dropdown-click .menu-item-has-children.sfHover>a .dropdown-menu-toggle:before { content: "\f107" !important; transition: all 0.2s ease-in-out; } .menu-item-has-children:not(.sfHover) .dropdown-menu-toggle:before { transform: rotatez(-90deg); transition: all 0.2s ease-in-out; }July 15, 2020 at 11:55 pm #1365152DM
Hi David.
I appreciate your help. I’d like the arrow to rotate on hover (not on click) and also drop the submenu on hover.
July 16, 2020 at 3:00 am #1365302David
StaffCustomer SupportCan you change the Navigation Dropdown to Hover in Customizer > Layout > Primary Navigation.
July 16, 2020 at 5:14 pm #1366187DM
Thanks, David!
Your first response actually addressed my issue, but I had an underlying problem. The menu wasn’t responding as expected because the top row was interfering. Thanks so much!
Dawn
July 16, 2020 at 10:35 pm #1366298DM
I wanted to follow up on creating image maps and let you know what I found. There are some great HTML generators for image maps. Upload the image and it will calculate the coordinates and generate the code 🙂 This was the best one that I found: https://www.zaneray.com/responsive-image-map/
July 17, 2020 at 2:00 am #1366444David
StaffCustomer SupportThats cool – thanks for sharing 🙂
October 19, 2020 at 8:54 pm #1496419DM
Hi David.
The arrow rotation was working fine and now it stopped all of a sudden. Can you offer any insight?
October 20, 2020 at 2:29 am #1496634David
StaffCustomer SupportOK – so with the Icon Type set to SVG you need some other CSS. Try replacing your CSS with this:
.menu-item-has-children .dropdown-menu-toggle .gp-icon { transform: rotatez(-90deg); transform-origin: center; transition: all 0.2s ease-in-out; } .menu-item-has-children:hover .dropdown-menu-toggle .gp-icon { transform: rotatez(0); }October 20, 2020 at 4:58 pm #1497741DM
Perfect! Thanks! I had switched to svg because PageInsights was dinging my score for render blocking.
October 21, 2020 at 1:45 am #1498013David
StaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.