I would suggest using id "all"
, to make sure that it doesn't happen on clicking another element with class current
.
<li class="current" id="all"><a data-filter="article.portfolio" href="#">All</a></li>
Now if you meant clicking by selecting,
Detect if all
is clicked, and change class
of all elements with class gravura-wrap or grafica-wrap or pictura-wrap or desen-wrap, to other-class.
$("#all").click(function(){
$(".gravura-wrap, .grafica-wrap, .pictura-wrap, .desen-wrap").removeClass().addClass("other-class");
});
Hope this helps, if it doesn't let me know if I got you wrong.