Thank you! Your feedback has been delivered
Thank you! Your feedback has been sent

two isotopes instances in the same page

Hi,

On my homepage I have two loop (wordpress) for my post: Free / Premium My first filter isotope is working but I don't known how made the second.

I have the perfect example, but I'm not good in js : http://jsfiddle.net/Dzega/6af2P/

The website is based on this template : http://www.sampression.com/sampressionlite/

So I need help to clean up my code and modify my isotope. Here the code : http://jsfiddle.net/Dzega/a88xx/

User Gravatar

DzeGa

Posted Feb 25 2014 1:40 UTC

$50


  • Assigned To NBoychev
  • Solved
  • isotope
  • 1524 Views

6 Replies


Hi DzeGa,

You can try this solution:

http://jsfiddle.net/836Ep/

If this doesn't work, you should provide the whole HTML and JS code (the html that is used in fiddle is modified by frontend code).

Regards,

Nikola Boychev

User Gravatar

NBoychev

Posted Feb 25 2014 3:51 UTC

It doesn't work for now, I let you see in the website : http://www.isis-tv.com/

User Gravatar

DzeGa

Posted Feb 25 2014 6:27 UTC

Hi DzeGa,

Thanks for the link, I've tested the code on your page and found the solution:

http://jsfiddle.net/836Ep/1/

Regards,

Nikola Boychev

User Gravatar

NBoychev

Posted Feb 25 2014 9:55 UTC

Solution

This didn't solve your task? Get your own custom solution.

I upload your js but nothing happen. Did you change something in the html?

User Gravatar

DzeGa

Posted Feb 25 2014 10:11 UTC

It's my fault ! I remove the div container for the premium. So your script cannot work! You find the solution very fastly.

User Gravatar

DzeGa

Posted Feb 25 2014 10:36 UTC

I'm testing this on the live site and it's working. The only missing is the active state color, you can set it by adding a line in the css:

.nav-listing-premium .active { color: #fff; }

Also try clearing your cache. If this doesn't work for you, can you give me more information about your system and browser.

Regards,

Nikola Boychev

User Gravatar

NBoychev

Posted Feb 25 2014 10:36 UTC

Add a reply

By posting a reply on CodersClan you agree to our Terms & Conditions