Activate widget-bar from search button

Hey guys,

sorry for the noob’ish question but is there anyone here who can help me figure out how to open the widget-bar by using the search button (looking glass")?

Cheers.
–Tony

Hi There,

Could you please provide us with your website URL so we can take a closer look?

Thanks.

Hi Tony,

You can add the code below in X > Launch > Options > Custom JS

jQuery(document).ready(function($) {
    $('.x-btn-navbar-search').off('touchend touchstart click');
    $('.x-btn-navbar-search').on('touchend click',function() {    
        $('.x-btn-widgetbar').click();
    });
});

Hope that helps.

Hey Paul,

that works like a charm, thanks a ton!

Br.
Tony

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.