Portfolio Departments

  • Posted in : Read WP
  • Anonymous
    Inactive

    Is there a way to remove “all” function from the portfolio page?

    Example: I have 4 departments of photographs, on the actual page they are also gathered under “all” category. How I can remove this?

    serkan
    Moderator

    Hi tochnost,
    You can use this custom css code;

    .pf-all-items { display: none !important; }

    Thanks

    Anonymous
    Inactive

    Thank you for the reply Serkan.

    This CSS code deletes the “all” category but when you are on the portfolio page, portfolio stills displays everything in the archive from all departments. Is there something I can add like “show this department” on page load instead of “show everything”?

    serkan
    Moderator

    Hi, paste the code below to the “External Stylesheet / Javascript” box under Theme Settings > Style;

    <script>
    $(function() {
       $('#filters li').first().remove();
       setTimeout(function() { $('#filters li').first().find('a').trigger('click')}, 1000);
    });
    </script>
    
    Anonymous
    Inactive

    This didn’t affect, portfolio still starts with showing everything from all departments. :( Can we force it to start displaying a certain department on page load?

    serkan
    Moderator

    Hi tochnost,
    Could you provide me your related url please?

    Anonymous
    Inactive

    You can see the example portfolio here: http://tinyurl.com/portfoliprob

    The link for “All” department is removed but portfolio still starts showing all departments on page load. My departments have very different size/aspect ratios that’s why I want to separate them and stop showing them all together. It would be very good if the script starts showing one of the departments I choose on page load. And then the user can browse into others.

    Right now these codes are active:


    .pf-all-items { display: none !important; }

    $(function() {
    $('#filters li').first().remove();
    setTimeout(function() { $('#filters li').first().find('a').trigger('click')}, 1000);
    });

    serkan
    Moderator

    Hi tochnost,
    I updated the code, please try to use new one ;

    <script>
    (function($) { "use strict"; 
       $('#filters li').first().remove();
       setTimeout(function() { $('#filters li').first().find('a').trigger('click')}, 1000);
    })(jQuery);
    </script>
    Anonymous
    Inactive

    Thank you Serkan!! This worked very well, you guys are amazing.

    serkan
    Moderator

    You’re welcome, please don’t forget to rate the theme on themeforest if you liked it, thanks.

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register