Remove or rename filter "All" from Portfolio

Home Support Business Point Remove or rename filter "All" from Portfolio

Tagged: ,

This topic contains 4 replies, has 3 voices, and was last updated by  ProDesign Support 1 month, 3 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15725

    mmconstruction
    Participant

    Hello, I’d like to rename the data filter “All” (default filter for the list at the portfolio widget) but I can’t find an option to do this. Could you please help me?

    #15727

    mmconstruction
    Participant

    Found it by myself.

    #16211

    ali106
    Participant

    Hello, can you please tell us how you did it?
    I have the same problem.
    Thanks in advance

    #16212

    ali106
    Participant

    I did it using this code:

    .pt-portfolio ul.filter-list li:first-child {
    display: none
    }

    When I reload page, “ALL” disappeared but the default (ALL) list still the same until I choose category.
    How can I show by default the first category?

    #16353

    Hello There!

    Hope you are doing good!

    Please add custom css to remove the details by following below mentioned steps

    1) Please log in to the admin area
    2) Go to “Appearance >> Customize >> Additional CSS”.
    3) Paste the below code in “Additional CSS” and save it afterward:

    .filter-list [data-filter="all"]{
        display:none;
    }

    then Open file /wp-content/plugins/pt-theme-addon/assets/filter.js and replace content with:

    ( function( $ ) {
      $(document).ready(function($){
            $('.filter-list [data-filter="all"]').remove();
            var first_load = $('.filter-list [data-filter]:first').attr('data-filter');
            $('.pt-portfolio-item-wrap').mixitup({
                 showOnLoad: first_load,
                 targetSelector: '.pt-portfolio-item',
                 transitionSpeed: 450
            });
      });
    } )( jQuery );

    Have a great day ahead!

    Regards,
    Team ProDesigns

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.