How to hide Street View and Get Direction button from Info Window?

In the latest version (3.6.4), you can hide Street View and Get Direction links via admin settings page (Under Filter Panels).

How to Hide or Show Street View and Get Directions in Super Store Finder

For older versions

You can follow the steps below in order to hide these buttons from the info window pop up.

1. Edit js/mega-superstorefinder.js

2. Search for keyword below “getStreetView = [” in notepad

getStreetView = [
                    ‘<a href=”javascript:streetView(‘,_store.lat, ‘, ‘, _store.lng, ‘)”‘,
                        ‘ class=”infobox__row infobox__stv”>’,
                        ssf_wp_streetview_label,
                    ‘</a>’
                ].join(”);

Change it to:

getStreetView = [

''

].join('');

3. Search for keyword below “getDirections = [” in notepad

getDirections = [
                    ‘<a href=”https://maps.google.com/maps?‘,
                            (map.markers.user.self)
                                ? ‘saddr=’ + map.markers.user.self.getPosition() + ‘&’
                                : ”,
                            ‘daddr=(‘, _store.lat, ‘, ‘, _store.lng, ‘)”‘,
                        ‘ target=”new”‘,
                        ‘ class=”infobox__row infobox__cta ssflinks”>’,
                        ssf_wp_direction_label,
                    ‘</a>’
                ].join(”);

Change it to:

getDirections = [

''

].join('');

4.Save/Upload the file and clear cache/refresh.

0