New Landing How can we help? Themeforest Theme Support Dante Categories slug showing

Viewing 15 posts - 16 through 30 (of 36 total)
  • Posted in: Dante
  • #84949
    tonipavlovic
    Member
    Post count: 52

    Understood.

    All the best,
    Antonio

    #84950
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome.
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #85860
    elitemva
    Member
    Post count: 3

    Hi Mohammad,

    did you already fix this issue?
    I’m using v 2.61 and it’s still showing the category-slug.

    Thanks for your reply!
    Yvonne

    #85865
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,

    @elitemva
    – We will fix this issue in next upgrade very soon.
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #85867
    elitemva
    Member
    Post count: 3

    Ah, sorry – my mistake, I thought you said you fixed it in v 2.6 something ๐Ÿ™‚
    Thanks for your reply!

    #85871
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Its ok.
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #90444
    pedrogaspar
    Member
    Post count: 5

    Have the same problem here… how can I fix it?

    thanks!

    #90618
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    @pedrogaspar-Please edit sf-portfolio.php at /dante/includes/.

    Find this code
    $term = get_term_by('name', $tax_term, 'portfolio-category');
    Replace with
    $term = get_term_by('slug', $tax_term, 'portfolio-category');

    Thanks

    #91816
    pedrogaspar
    Member
    Post count: 5

    thanks!

    #91818
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Thanks Mohammad

    – Kyle

    #93953
    Taffy
    Member
    Post count: 261

    This doesn’t seem to work with a child theme.

    I create an “includes” folder with the revised sf-portfolo.php file in the Child Folder, but it does not effect a change.

    The issue is that when the theme is updated, the fix is negated.

    #93957
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    I’m afraid it doesn’t work that way, you can only override whole files in your child theme for files in the root folder of the theme for e.g. header.php, footer.php etc. Anything that is within subfolders can only be overwritten if the function starts with if (!function_exists

    In this case, you will need to copy the whole function and paste in your child theme’s functions.php file:

    /* PORTFOLIO FILTER
    	================================================== */
    	if (!function_exists('sf_portfolio_filter')) { 
    		function sf_portfolio_filter($style = "basic", $parent_category = "") {
    						
    			$filter_output = $tax_terms = "";
    			
    			$options = get_option('sf_dante_options');
    			$filter_wrap_bg = $options['filter_wrap_bg'];
    			
    			if ($parent_category == "" || $parent_category == "all") {
    				$tax_terms = sf_get_category_list('portfolio-category', 1);
    			} else {
    				$tax_terms = sf_get_category_list('portfolio-category', 1, $parent_category);
    			}
    			
    			if ($style == "slide-out") {
    			
    		    $filter_output .= '<div class="filter-wrap slideout-filter row clearfix">'. "\n";
    		    $filter_output .= '<a href="#" class="select"><i class="fa-justify"></i>'. __("Filter our work", "swiftframework") .'</a>'. "\n";
    		    $filter_output .= '<div class="filter-slide-wrap col-sm-12 alt-bg '.$filter_wrap_bg.'">'. "\n";
    		    $filter_output .= '<ul class="portfolio-filter filtering row clearfix">'. "\n";
    		    $filter_output .= '<li class="all selected col-sm-2"><a data-filter="*" href="#"><span class="item-name">'. __("All", "swiftframework").'</span><span class="item-count">0</span></a></li>'. "\n";
    			foreach ($tax_terms as $tax_term) {
    				$term = get_term_by('slug', $tax_term, 'portfolio-category');
    				if ($term) {
    				$filter_output .= '<li class="col-sm-2"><a href="#" title="View all ' . $term->name . ' items" class="' . $term->slug . '" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span><span class="item-count">0</span></a></li>'. "\n";
    				} else {
    				$filter_output .= '<li class="col-sm-2"><a href="#" title="View all ' . $tax_term . ' items" class="' . $tax_term . '" data-filter=".' . $tax_term . '"><span class="item-name">' . $tax_term . '</span><span class="item-count">0</span></a></li>'. "\n";
    				}
    			}
    		    $filter_output .= '</ul></div></div>'. "\n";
    		    
    		    } else {
    		    
    			    if ($style == "full-width") {
    			    	$filter_output .= '<div class="container">';
    			    }
    			    
    			    $filter_output .= '<div class="filter-wrap row clearfix">'. "\n";
    			    $filter_output .= '<ul class="portfolio-filter-tabs bar-styling filtering col-sm-12 clearfix">'. "\n";
    			    $filter_output .= '<li class="all selected"><a data-filter="*" href="#"><span class="item-name">'. __("All", "swiftframework").'</span><span class="item-count">0</span></a></li>'. "\n";
        			foreach ($tax_terms as $tax_term) {
        				$term = get_term_by('name', $tax_term, 'portfolio-category');
        				if ($term) {
        				$filter_output .= '<li><a href="#" title="View all ' . $term->name . ' items" class="' . $term->slug . '" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span><span class="item-count">0</span></a></li>'. "\n";
        				} else {
        				$filter_output .= '<li><a href="#" title="View all ' . $tax_term . ' items" class="' . $tax_term . '" data-filter=".' . $tax_term . '"><span class="item-name">' . $tax_term . '</span><span class="item-count">0</span></a></li>'. "\n";
        				}
        			}
    			    $filter_output .= '</ul></div>'. "\n";
    			    
    			    if ($style == "full-width") {
    			    	$filter_output .= '</div>';
    			    }
    		    
    		    }
    			
    			return $filter_output;	
    		}
    	}

    – Kyle

    #98734
    tonipavlovic
    Member
    Post count: 52

    Please be aware that the 2.64 update still has the same problem categories issue.

    Antonio

    #98735
    tonipavlovic
    Member
    Post count: 52

    Please be aware that the 2.64 update still has the same problem categories issue.

    Antonio

    edit: apologies for the double post, my bad.

    #98740
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Not sure if Mohammad informed the developer on this, I will let him know and hopefully it will be in the next update

    – Kyle

Viewing 15 posts - 16 through 30 (of 36 total)

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

License required for one of the following items
Login and Registration Log in · Register