Portfolio affordances

  • Posted in : BookCard WP
  • akash90gupta
    Participant

    Hi,

    I was looking at my portfolio page and it can be filtered on the top into 2 main categories, Design and Coding. I was wondering if there was a way to include a number in brackets after Design and Coding indicating the number of project involving that skill so that filtration can be made simpler. For example, instead of just listing: ALL, DESIGN, CODING, It could show ALL(6) DESIGN(5) CODING(4) so that the viewer knows how many projects are there in the portfolio in total and can scroll down and navigate through all of them effectively.

    Thanks for all the help!

    Akash

    Mehmet S.
    Keymaster

    That’s a nice idea. I will have that in mind for a next update. Thanks.

    ahmetsali
    Keymaster

    Hi, paste the code below to the External JS box;

    <script>
    jQuery(document).ready(function($)
    {
    	var $items = $('.portfolio-items');
    
    	$('#filters li').each(function(index, element) {
    		var filter = $(this).children('a').attr('data-filter');
    		if(filter == "*") 
    			$(this).append(" (" + $items.children('div').length + ")" );
    		else 
    			$(this).append(" (" + $items.find(filter).length + ")" );
    	});
    
    });
    </script>
    
    akash90gupta
    Participant

    Hi ,

    Where can I find the external JS?

    Mehmet S.
    Keymaster

    Theme Options > Style > External CSS/JS

    akash90gupta
    Participant

    Fantastic! Thanks!

    Mehmet S.
    Keymaster

    You are welcome!

Viewing 7 posts - 1 through 7 (of 7 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