Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7307883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T23:28:56+00:00 2026-05-28T23:28:56+00:00

I am using isotope, here’s the jsfiddle: http://jsfiddle.net/desandro/DA3wF/ Or, alternatively, a demo I have

  • 0

I am using isotope, here’s the jsfiddle: http://jsfiddle.net/desandro/DA3wF/

Or, alternatively, a demo I have set up: http://nerdi.net/isotope-test.html

There’s an option filter: selector

How could I pass a filter, ex: index.html#green that on page load, would filter to the .green class? is this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T23:28:56+00:00Added an answer on May 28, 2026 at 11:28 pm
    filter: (window.location.hash != '') ? '.' + window.location.hash.replace('#', '') : 'default'
    

    This is an if/then statement that checks to see if the current hash is an empty string. If it is then filter will be set to default otherwise it will be set to the window.location.hash value (minus the #).

    A URL like this, index.html, will result in filter being set to default and a URL like this, index.html#my-selector, will result in filter being set to .my-selector.

    Update

    The reason your code isn’t working doesn’t actually have anything to do with my code, but here is an updated version of your code that I tested on your site:

    $filterLinks.click(function(){
        var $this = $(this);
        
        // don't proceed if already selected
        if ( $this.hasClass('selected') ) {
            return;
        }
        
        $filterLinks.filter('.selected').removeClass('selected');
        $this.addClass('selected');
        
        // get selector from data-filter attribute
        var selector = $this.data('option-value');
        
        $container'.isotope({
            filter: selector
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Metafizzy's Isotope plugin and have it set up to filter using
Really banging my head with this. I am using isotope http://isotope.metafizzy.co/custom-layout-modes/centered-masonry.html . I have
I've been using isotope to set up a filterable library of publications and it's
I'm using http://isotope.metafizzy.co/docs/options.html#onlayout and it says this: Similiar to a callback, onLayout is a
I'm using the sorting methods within Isotope (http://isotope.metafizzy.co/docs/sorting.html) and need to display elements with
here's a question for the logically endowed. I'm using isotope , a badass jquery
I'm using jQuery isotope. Everything is ok but I have problem with filtering. I
I'm using http://isotope.metafizzy.co/ 's isotope plugin to create grid layout. On clicking any of
I am using Isotope for a project. We bought a commercial license. I need
I am using the jQuery Isotope plugin for WordPress posts. I want to show

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.