• Resolved alexmattorr

    (@alexmattorr)


    Hello,

    I am doing a very custom output for the listings where I have the map in the sidebar with the search functionality, and then the listings on the main content portion of the site.

    <section class="properties-layout">
    
      <aside class="prop-container prop-lander-container">
        <div class="scrollbar-wrapper">
          <?php
            echo do_shortcode('[sr_map_search]');
            echo do_shortcode('[sr_search_form advanced="true"]');
          ?>
        </div>
      </aside>
    
      <article>
        <?php echo do_shortcode('[sr_listings]'); ?>
      </article>
    
    </section>

    The way it is currently setup, the map gets outputted with the sr_map_search and the sr_listings. Is there anyway I can disable the map (not doing display: none;) for the sr_listings so there are not conflicting errors between the two? I believe because both maps are currently being outputted the search functionality breaks.

    Thank you

Viewing 1 replies (of 1 total)
  • CodyReichert

    (@codyreichert)

    Hey @alexmattorr – I’m sorry I’m just now seeing this! I hope you were able to figure this out, but I’ll post the answer in case anyone else comes across this.

    You can hide the map on sr_listings by setting the map_position attribute to list_only. For example:

    [sr_listings map_position="list_only"]

    should do the trick.

    Let me know how that works out for you!

    PS – In case you (or anyone else seeing this) need support in the future and don’t immediately get a reply here, you can always email [email protected] directly.

Viewing 1 replies (of 1 total)
  • The topic ‘Don’t output Map for sr_listings.’ is closed to new replies.