Results 1 to 2 of 2

Thread: Isotope filter loading all categories on page load, not selected category

  1. #1
    Join Date
    2005-07-22
    Posts
    1

    Default Isotope filter loading all categories on page load, not selected category

    My isotope filter is loading all categories on page load, not the selected category. I did the best I could with my test case. Hopefully you'll be able to figure out how to get the page to load with the selected category only. Appreciate the help!

    https://isotope.metafizzy.co/

  2. #2
    Join Date
    2013-05-21
    Posts
    2

    Default

    set an initial filter when you initialize Isotope. here is an example, say you plan to set .water as default!

    Code:
    <script>
          // init Isotope
          let $grid = $('.grid').isotope({
            // options
            filter: '.water',
          });
          // filter items on button click
          $('.filter-button-group').on( 'click', 'button', function() {
            let filterValue = $(this).attr('data-filter');
            $grid.isotope({ filter: filterValue });
          });
        </script>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Magento URL Rewriting Tutorial
    By Cherryvale in forum Magento
    Replies: 0
    Last Post: 2017-03-13, 10:43 AM
  2. Becoming an editor at the Open Directory
    By yahoo in forum 闲话灌水
    Replies: 0
    Last Post: 2009-05-24, 02:08 PM
  3. Adding Description to the Category page (phpld)
    By topvip in forum Web Directory
    Replies: 0
    Last Post: 2007-08-17, 02:44 AM
  4. What are the Strongest Directories?
    By smiling in forum 网站链接开发
    Replies: 1
    Last Post: 2007-07-28, 10:26 PM
  5. Building for the user and the bot.
    By admin in forum 建站交流
    Replies: 0
    Last Post: 2006-01-17, 03:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •