• Hi

    I have set up Simple Locator Plus, but when I add the following container designations for the map and results containers to the shortcode, only the results container works:

    [wp_simple_locator mapcontainer="#results-map" resultscontainer="#results-listings"]

    I have the following containers set up, but it won’t show the map, it’ll only show the results:

    <div id="results-map"></div><br />
    <div id="results-listings"></div>

    Thanks for your assistance with this!

    https://www.ads-software.com/plugins/simple-locator/

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

    (@prius111)

    Nevermind I figured it out, but I do need to know how I can have those containers hidden until someone has pressed the search button. Until then, there’s a big space where the map will be after someone searches, but until they search it’s just a big gap.

    Thread Starter prius111

    (@prius111)

    Also how do I make it where it scrolls down to the containers when someone presses the search button?

    Hi prius111 –

    I was having this issue; the map not displaying where/how I wanted it to.

    To make it work right, add a bit of javascript that adds a class to the map container when the submit button is clicked.

    <script>
         $(document).ready(function() {
              $('.wpslsubmit').click(function() {
                   $('#treatment-center-map').addClass("mapheight");
              });
         });
    </script>

    When the submit button is clicked, my mapheight class is added to the container. The class gives the container the height needed and it displays correctly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Map and results not showing up in designated containers’ is closed to new replies.