• Resolved emiubaldi

    (@emiubaldi)


    I wondered if it is possible to display the “View Switcher” or “Listings Ordering by” while using the shortcode [auto_listings_listings].

    This shortcode [auto_listings_listings] does not allow us to chose to display the listing as “grid” or “list,” moreover, to sort them by Most recent, Oldest, etc.

    There are any tricks I can use? Maybe by adding an attribute on the shortcode?

    Thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author autolistings

    (@autolistings)

    Hi,

    At the moment, you cannot add the “View Switcher” or “Listings Ordering by” into that shortcode. It requires some custom works.

    Thank you.

    Thread Starter emiubaldi

    (@emiubaldi)

    Thanks!

    Finally I manually added this piece of script & HTML on my page and it worked, no as the native one located on the listing page but it does the job for me!

    <script>
    $(document).ready(function(){
    $("#list").click(function(){
      $(".auto-listings-items").removeClass("grid-view");
      $(".auto-listings-items").addClass("list-view");
    });
    $("#grid").click(function(){
      $(".auto-listings-items").removeClass("list-view");
      $(".auto-listings-items").addClass("grid-view");
    });
    });
    </script>

    And

     <div class="auto-listings-view-switcher">
    	<div id="list" class="list"><i class="fa fa-list"></i></div>
    	<div id="grid" class="grid"><i class="fa fa-th"></i></div>
    </div>

    Cheers!

    • This reply was modified 4 years, 1 month ago by emiubaldi.
    • This reply was modified 4 years, 1 month ago by emiubaldi.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘View switcher with shortcode’ is closed to new replies.