Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #182838

    Hi,

    1) I have been looking everywhere but do not find where to change this small word “All” !! Could you please help me, thanks !

    2) I am also looking to change the “/” sign which separate the category.

    3) Last question, is there a way to set the filters’ order?

    Thanks !

    #183258

    Hey oliviad!

    Are you talking about sort filter for portfolio items?

    1. Please add this on your functions.php:

    add_filter('avf_portfolio_sort_first_label','avia_change_portfolio_label', 10, 2);
    
    	function avia_change_portfolio_label($all, $params)
    	{
    		$all =  "Name of your label";
    		return $all;
    	}

    2.) Edit config-templatebuilder > avia-shortcodes > portfolio.php, find thi code:

    $output .= "<span class='text-sep ".$category->category_nicename."_sort_sep'>/</span>";

    3.) Edit the same file again and look for this code on line 410:

    //get all categories that are actually listed on the page
    			$categories = get_categories(array(
    				'taxonomy'	=> $params['taxonomy'],
    				'hide_empty'=> 0
    			));
    

    Replace it with:

    //get all categories that are actually listed on the page
    			$categories = get_categories(array(
    				'taxonomy'	=> $params['taxonomy'],
    				'hide_empty'=> 0,
    				'orderby' => 'title',
    				'order' => 'DESC'
    			));
    

    Regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Change the All in category filter of page builder / change order of filter’ is closed to new replies.