This topic contains 3 replies, has 2 voices, and was last updated by Sofia Moss Sofia Moss 7 years, 8 months ago.

Category selector always open

  • User Level

    Would like to have category always open.
    Can’t find the code in js.

    Little help would be great.

    Thanks!

    Sofia Moss
    StaffSuper ContributorUser Level

    Hi there,

    To show Category filter by default, you can either use shortcode [SUPER-STORE-FINDER CAT=examplecategory] or if you don’t have a category to show by default and wish to show all categories with the category panel open, you can edit js/mega-superstorefinder.net

    Search for the following code:

    $els.storeLocatorInfoBox.self.find('.infobox__closer').on('click', function(e) {
    
        e.preventDefault();
    
        map.infobox.self.close();
    
    });

    And change the code (add a new line of code) as below:

    $els.storeLocatorInfoBox.self.find('.infobox__closer').on('click', function(e) {
    
       e.preventDefault();
    
       map.infobox.self.close();
    
    });
    
    jQuery('#filter__services .filter__toggler').trigger('click');
    User Level

    Works! Thanks!! :)

    Sofia Moss
    StaffSuper ContributorUser Level

    Excellent! You’re welcome!

The topic ‘Category selector always open’ is closed to new replies.