- This topic has 9 replies, 2 voices, and was last updated 2 years, 11 months ago by Tom.
May 14, 2018 at 5:53 pm #575687Kyle
I am trying to add a WPML custom language switcher to GP secondary navigation, I got it worked after tinkering for a bit.
My problem now is the dropdown menu only works with Mouse Hover and not Click, my client prefers/insists on using the Click dropdown option 🙁
Staging site currently set to ‘Click – Arrow’GeneratePress 2.1.1GP Premium 1.6.2May 14, 2018 at 8:47 pm #575748TomLead DeveloperLead DeveloperMay 14, 2018 at 8:51 pm #575750Kyle
Thanks for getting back at this hours. I have just removed the flag switcher to prevent confusion.
The ‘Languages’ submenu should be there now as the settings has changed to ‘Hover’ now instead of ‘Click – Arrow’, and that’s the exact issue that I’m facing, submenu not appearing when Navigation Dropdown is set to either of the ‘Click’ optionsMay 14, 2018 at 8:54 pm #575754TomLead DeveloperLead DeveloperMay 14, 2018 at 8:55 pm #575756Kyle
Done, is back to Click – Arrow now. Do let me know if you need access to the WP admin.May 14, 2018 at 9:03 pm #575759TomLead DeveloperLead DeveloperMay 14, 2018 at 9:14 pm #575765Kyle
I have changed it to Click – Menu Item, same behavior.
This can be replicated on a sandbox site with only the required plugins installedMay 15, 2018 at 9:05 am #576227TomLead DeveloperLead DeveloperMay 15, 2018 at 3:12 pm #576539Kyle
Normally you have to add the menu from their configuration page, this option works fine with Click – Arrow setting
For my case is slightly different, as I have to add an extra ‘Languages’ label for the top menu. I came across with this solution as proposed by WPML support team – it works fine but it doesn’t play nicely with GP’s menu.
I’m thinking if I should try the shortcode approach and add the this language switcher as a submenu directlyMay 15, 2018 at 8:59 pm #576689TomLead DeveloperLead Developer
Personally I would just add it directly. It doesn’t look like there’s anything special that can’t be added as custom links: https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#custom-link
- You must be logged in to reply to this topic.