Site logo

Archived topic

Dropdown Menu of Country Switcher in Header

42 replies · Started by Ree on July 24, 2021

Viewing posts 1–15 of 43

Hi I found out how to add the dropdown menu, however its not showing in my mobile menu.
I've added the functions in my child theme, and ticked mobile menu.

The code is showing up when I inspected though.

staging site

Hi there,

Can you clear and disable your caching plugin first?

Let me know :)

I don’t have caching plug-in activated and I tried incognito - not working …

Are you talking about the two flags that are currently added as the top bar widget?

No, not about that. I made a drop down menu which will only show on mobile but only the code is showing on inspect.

Sorry not sure if I'm following.

Are we still talking about the country switcher?

Yes we are talking about Country switcher in HEADER, not language switcher in Top Bar.

Can you share a link to the site where we can 'see' the issue?

Yes the link is here

WPML has a code but that’s only for language switcher not country switcher.

Also my current struggle is to show the menu on mobile.

I’ve tried inserting the drop down menu using hook but the drop down ain’t working

Hi Ree,

Also my current struggle is to show the menu on mobile.

I’ve tried inserting the drop down menu using hook but the drop down ain’t working

Should the menu show up inside the off-canvas? or should it be added on the space indicated here? https://share.getcloudapp.com/7KuoDqNn

You can try these hooks for the mobile header- generate_inside_mobile_header or generate_after_mobile_header_menu_button

This archived topic is closed to new replies.