• Resolved vaschops

    (@vaschops)


    Hi guys..

    I noticed that Brands Dropdown widget added to shop sidebar is not working on mobile.
    Meaning that it does not refresh the results when a brand is selected …like it does on the desktop.
    (on the link page, it is the first filter/dropdown that appears on the sidebar)

    Can anyone else reproduce the issue..?
    Any advice..?

    Kind thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter vaschops

    (@vaschops)

    Hi…
    1 week no reply..

    So, Brands dropdown works for everyone else..?
    When u select a brand, do results refresh..?

    a boat with no sails afloat…

    Plugin Contributor titodevera

    (@titodevera)

    Hi vaschops.

    I’m sorry for the delay, but remember that PWB is a fully free plugin, we answer your questions when we can.

    It seems that your theme clones the widgets for using it in mobile, so the on change event will not available in the cloned dropdown. The code below solves the issue, attaching again the on change event to the cloned dropdown. Adds the code to your functions.php.

    
    add_action('wp_enqueue_scripts', function(){
    	$inline_js = 'jQuery(document).ready(function($){ $(".offcanvas_sidebars").on("change",".pwb-dropdown-widget",function(){ location.href = $(this).find(":selected").val(); }); });';
    	wp_add_inline_script('pwb-functions-frontend', $inline_js);
    }, 20);
    

    ??

    Thread Starter vaschops

    (@vaschops)

    Hey..!
    Thanks Tito

    The code worked nicely smooth like a baby’s bottom..

    Many thanks again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Brands dropdown not working on mobile’ is closed to new replies.