January 6, 2021 at 6:45 am
#10035577
Keymaster
Hello,
Great!
Regarding new question, that’s because is missing the “tabs” JS code. Please try changing the code at (js/custom.js) to:
var filters = {},
$grid = $('.portfolio-list');
$('#categoryDropdown, #popularityStuffDropdown, #searchFilter').on('change', function(e) {
var $this = $(this);
var filterGroup = $this.data('filter-group');
filters[filterGroup] = $this.val();
var filterValue = concatValues(filters);
$grid.isotope({
filter: filterValue
});
});
$('.portfolio-filter-group a').on('click', function(e){
e.preventDefault();
$('.portfolio-filter-group a').removeClass('active');
$('.portfolio-filter-group li').removeClass('active');
var $this = $(this);
var filterGroup = $this.data('filter-group');
filters[filterGroup] = $this.parent().data('option-value');
var filterValue = concatValues(filters);
$grid.isotope({
filter: filterValue
});
$this.addClass('active');
$this.parent().addClass('active');
});
function concatValues(obj){
var value = '';
for (var prop in obj) {
value += obj[prop];
}
return value;
}
Please try that and let us know if you need further assistance.
Kind Regards,
Rodrigo.
If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads