Archived topic
Wpml language switcher on second menu with sticky navigation
5 replies · Started by Utopia - Arquitectura e Engenharia Lda on February 23, 2023
Hi,
We need this layout for the wpml language switcher (shortcode) :
https://www.utopia-projects.com
Basically is a second menu with a different icon that toggles the language switcher.
Then we need to make it sicky ( 1st menu, logo and wpml menu)
How can we achieve this with generatepress?
We need this layout for the wpml language switcher (shortcode) :
I'm not seeing a secondary navigation or language switcher in the link you provided.
Can you explain a bit more or show us a mockup?
Hi Ying,
Thank you very much for your reply.
Here is the desktop and mobile prints with language swicher identified as 2nd and the main menu identified as 1st.
Is this link your site? https://www.utopia-projects.com
I'm confused, it's not using GP.
Let me know if I miss anything.
That site is the one we are trying to rewrite using generatepress.
That site is not using generatepress.
But we want to reproduce the layout on that site.
That's why I asked "How can we achieve this with generatepress?" on my first post.
I am sorry for the misunderstanding.
Hi there,
we can't do the slide-in menu for WPML, that would require Custom Development.
To add the WPML language switcher ( i assume that is using a shortcode ):
1. Appearance > Elements -> Add New --> Hook:
https://docs.generatepress.com/article/hooks-element-overview/
2. Add you Shortcode to the text area.
3. Set the Hook to generate_menu_bar_items
4. Check Execute Shortcodes
5. Set the Display Rule > Location to Entire Site
6. Publish the element
That will add the WPML Switcher after the main nav on desktop and mobile.
If you want to set that up, and share the link to that GP Site, ill provide the steps to arrange the mobile layout you want