How to enable map view in default in search V2 page.

To do this, please add this code:

jQuery(document).ready(function($){
  (function triggerClickElement(elem,page){
    if(jQuery(page).length){
      jQuery(elem).click();      
    }
  })('.wil-map-btn input.checkbox_inputcheck__1_X9Z', 'body.page-template-search-v2');  
});

In Appearance / Theme Options / Advanced Setting / Custom JS

Tagged:

Leave A Comment?