Change default category selection in Portfolio

  • Posted in : BookCard
  • noel
    Participant

    I’m trying to get a filter to be already selected under portfolio instead of the default “ALL”. I can have the link look like it’s selected, but to actually filter you have to click it.

    Is there a way to have a filter be the default? I tried to look at the Isotope JS file but couldn’t figure it out on my own.

    Thanks!

    Mehmet S.
    Keymaster

    Check the Isotope documentation.
    http://isotope.metafizzy.co

    noel
    Participant

    For anyone interested, add this to main.js:

    $(‘.portfolio-items’).isotope({
    // other start up options..
    filter: ‘.WHATEVER FILTER YOU WANT
    });

    Having problems with this in Chrome however.

    noel
    Participant

    This works in chrome!!!! $(‘.portfolio-items’).isotope({ filter: ‘.YOURFILTER });

    Mehmet S.
    Keymaster

    Thanks.

    peidshjt
    Participant

    I’m having trouble getting this to work, where do I put that line of code?

    My category is named “.selects”

    ahmetsali
    Keymaster

    @peidshjt

    if you can provide your url i can give you a custom js code for you.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register