Comments Dylan Kirkpatrick started the conversationMay 7, 2018 at 5:46pmWe successfully removed the all section with the code, a#all { display: none !important;}Is there a way to default the portfolio to our "1:: CLIENTS" section?Thanks! 1,974Support repliedMay 8, 2018 at 4:48pmHi DylanShort answer is with custom work.The idea is to assign ids to all filter elements or at least to the first you want filtered on initSo try opening /sections/portfolio_section.php and modify line 69 (assuming you are running the latest version)<li><a href="#" data-filter=".<?php echo $portfolio_cat->slug; ?>"><h5><?php echo $portfolio_cat->name; ?></h5></a></li>to<li><a href="#" id="<?php echo $portfolio_cat->slug; ?>" data-filter=".<?php echo $portfolio_cat->slug; ?>"><h5><?php echo $portfolio_cat->name; ?></h5></a></li>then open /js/scripts.js and replace all occurrences of jQuery("#all").click();with jQuery("#clients").click();Thank you. Clapat Support https://www.clapat.com/ Review Envato Item Support Policy Sign in to reply ...
We successfully removed the all section with the code,
a#all {
display: none !important;
}
Is there a way to default the portfolio to our "1:: CLIENTS" section?
Thanks!
Hi Dylan
Short answer is with custom work.
The idea is to assign ids to all filter elements or at least to the first you want filtered on init
So try opening /sections/portfolio_section.php and modify line 69 (assuming you are running the latest version)
<li><a href="#" data-filter=".<?php echo $portfolio_cat->slug; ?>"><h5><?php echo $portfolio_cat->name; ?></h5></a></li>
to
<li><a href="#" id="<?php echo $portfolio_cat->slug; ?>" data-filter=".<?php echo $portfolio_cat->slug; ?>"><h5><?php echo $portfolio_cat->name; ?></h5></a></li>
then open /js/scripts.js and replace all occurrences of
jQuery("#all").click();
with
jQuery("#clients").click();
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy