Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Is it possible to change default first items in isotope?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #270167
    giovannicrazy
    Participant

    I tried to change the default value “show all” to other value example “yellow” or “Big” but without success.

    Here is the link:

    https://jsfiddle.net/srikanthLavudia/vhrbqn6p/

    I hope you can give me a hand…

    #270168
    chris_2080
    Participant

    is that what you need?
    https://jsfiddle.net/vhrbqn6p/15/

    edit: in isotope directly you can: filter: ‘.yellow’ like this

    var $grid = $('.grid').isotope({
        itemSelector: '.item',
        filter: '.yellow'
      });
    
    #270172
    giovannicrazy
    Participant

    Oh thanks so much!!! I didn’t see these part of script.
    Thanks! :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.