Okay
  Public Ticket #1862938
removing 'all' portfolio category
Closed

Comments

  •  1
    Motion_Squirrel started the conversation

    I have added some CSS to hide the portfolio 'all' category, but when landing on the portfolio page, it still starts with all of the images. I would like to land on my first category (Interiors Book 1) instead.

    Is there some php I can add to my Kalium Child theme to achieve this?

    Thanks

    Jo

  • [deleted] replied

    Hi Jo,

    To make first category after "All" selected add the following code in Theme Options > Footer > JavaScript > Footer JavaScript:

    <script>
    jQuery( document ).ready( function() {
        var $all = jQuery( '.portfolio-category-all' ),
            $next = $all.next();
        $next.find( 'a' ).trigger( 'click' );
    } );
    </script>
    <style>
    .portfolio-category-all {
        display: none !important;
    }
    </style>
    This should work for you.

  •  1
    Motion_Squirrel replied

    You genius! Thanks so much

  • [deleted] replied

    Hi Jo,

    I'm very happy to hear thatsmile.png

    Have a great day!

    P.S: If you like the theme, it would help us a lot if you could give us a five-star rating on Themeforest from your Downloads tab.

    A huge thank you from me and Laborator in advance.