Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Categories slug showing
New Landing › How can we help? › Themeforest Theme Support › Dante › Categories slug showing
- This topic has 35 replies, 8 voices, and was last updated 10 years by Swift Ideas – Ed.
-
Posted in: Dante
-
June 24, 2014 at 7:13 am #84949
Understood.
All the best,
AntonioJune 24, 2014 at 7:14 am #84950Hi,
You most welcome.
Thanks ๐
With Best Regards
Swift IdeasJune 25, 2014 at 3:13 pm #85860Hi 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!
YvonneJune 25, 2014 at 3:18 pm #85865Hi,
@elitemva – We will fix this issue in next upgrade very soon.
Thanks ๐
With Best Regards
Swift IdeasJune 25, 2014 at 3:19 pm #85867Ah, sorry – my mistake, I thought you said you fixed it in v 2.6 something ๐
Thanks for your reply!June 25, 2014 at 3:22 pm #85871Hi,
Its ok.
Thanks ๐
With Best Regards
Swift IdeasJuly 11, 2014 at 9:28 pm #90444Have the same problem here… how can I fix it?
thanks!
July 13, 2014 at 6:13 pm #90618Hi,
@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
July 16, 2014 at 5:56 pm #91816thanks!
July 16, 2014 at 5:56 pm #91818Thanks Mohammad
– Kyle
July 23, 2014 at 7:53 am #93953This 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.
July 23, 2014 at 8:01 am #93957Hi
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
August 7, 2014 at 9:33 am #98734Please be aware that the 2.64 update still has the same problem categories issue.
Antonio
August 7, 2014 at 9:33 am #98735Please be aware that the 2.64 update still has the same problem categories issue.
Antonio
edit: apologies for the double post, my bad.
August 7, 2014 at 9:40 am #98740Hi
Not sure if Mohammad informed the developer on this, I will let him know and hopefully it will be in the next update
– Kyle
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.