[Support request] Dropdown Menu of Country Switcher in Header

Home Forums Support [Support request] Dropdown Menu of Country Switcher in Header

Home Forums Support Dropdown Menu of Country Switcher in Header

Viewing 15 posts - 1 through 15 (of 43 total)
  • Author
    Posts
  • #1868998
    Ree

    How can I achieve this dropdown menu by using hook?

    Thankyou!

    https://prnt.sc/1f8a9uk

    #1869070
    David
    Staff
    Customer Support

    Hi there,

    the language plugin you’re using should provide a shortcode.
    you can use a Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    To add the shortcode.
    And then set the Hook to generate_menu_bar_items

    #1869308
    Ree

    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

    #1869508
    Leo
    Staff
    Customer Support

    Hi there,

    Can you clear and disable your caching plugin first?

    Let me know 🙂

    #1869599
    Ree

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

    #1869600
    Leo
    Staff
    Customer Support

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

    #1869609
    Ree

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

    #1869720
    Leo
    Staff
    Customer Support

    Sorry not sure if I’m following.

    Are we still talking about the country switcher?

    #1869743
    Ree

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

    #1869746
    Ree

    This is desktop showing the country switcher : https://prnt.sc/1fkep81

    This is mobile showing nothing, although I’ve added the functions in my child theme, and ticked mobile menu. https://prnt.sc/1fkf4ma

    #1869949
    David
    Staff
    Customer Support

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

    #1869950
    Ree

    Yes the link is here

    #1870068
    David
    Staff
    Customer Support
    #1870090
    Ree

    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

    #1870663
    Elvin
    Staff
    Customer Support

    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

Viewing 15 posts - 1 through 15 (of 43 total)
  • You must be logged in to reply to this topic.