Okay
  Public Ticket #1566885
Defaulting Portfolio to another section
Closed

Comments

  • Dylan Kirkpatrick started the conversation

    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!

  •  1,974
    Support replied

    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