• Resolved napisal

    (@napisal)


    There’s a problem with hover dropdown currency switcher style – when using it on mobile device, you can’t choose any item because active currency is clickable and page is being reloaded after trying to open menu.

Viewing 6 replies - 1 through 6 (of 6 total)
  • This is normal for the dropdown style currency switcher.
    Please use dropdown-click style instead.

    Thread Starter napisal

    (@napisal)

    I understand it is how it supposed to work now, but isn’t it a good idea to make a simple fix for touchscreen devices?

    Using the dropdown-click is one proper fix for touchscreen devices.
    You click on the switcher and it opens a menu and you are not directed to the top of the page.
    What else do you suggest?

    Thread Starter napisal

    (@napisal)

    Well, there are several solutions of this problem https://www.google.com/search?client=safari&rls=en&q=dropdown+menu+on+touch+screen&ie=UTF-8&oe=UTF-8

    I can also suggest that it is possible to disable the link of active currency. Now think link just reloads a page with the same currency.

    More than 60% of internet devices are touchscreen, it would be nice for many users to use one hover dropdown switcher with touchscreen support so it would work on both PC and mobile devices. Just a suggestion ??

    Yes, I agree that there are several solutions and we are applying one of them in the template dropdown-click.
    This is no different from the language switcher in WPML where the same approach is being used.

    Thread Starter napisal

    (@napisal)

    Well, okay.

    If anyone wants to make this dropdown menu universal for PC and touchscreen, you may use this JS code:

    //Allow clicking instead of hover for dropdown currency menu when using touchscreen
    $(document).ready( function(){
    
        $('.wcml-cs-active-currency').click( function(event){
            event.stopPropagation();
            $('.wcml-cs-submenu').toggle();
        });
    
        $(document).click( function(){
            $('.wcml-cs-submenu').hide();
        });
    
    });
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Dropdown on Hover Switcher Style and Touchscreen’ is closed to new replies.