Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Uplift › Portfolio Category issue
New Landing › How can we help? › Themeforest Theme Support › Uplift › Portfolio Category issue
- This topic has 13 replies, 2 voices, and was last updated 8 years by David Martin – Support.
-
Posted in: Uplift
-
June 29, 2016 at 6:15 am #277938
We have an issue where we have to have multiple Portfolio Categories with the same name, i.e. Advertising, but if they have the same name they cancel each other out and will not show in a Filtered Portfolio.
We tried giving them different slug names, but the issue remains.
Our work-around is to change the name of one slightly by adding an *. This is only temporary and we need a fix.
The best example are the two Advertising categories used on
http://flintsydney.com/andreas-smetana/andreas-smetana-photography/
and
http://flintsydney.com/toby-dixon/toby-dixon-photography/
You can see that we have managed to get the Advertising Category displaying on this page by changing the Category name to Advertising*
We need to have the Slug name be the identifier for the Portfolio Filter.
Can you please help us ASAP.
Thanks,
Mark
June 30, 2016 at 7:47 pm #278507Hi Mark,
You can override the front-end portfolio filter output within:
/uplift/swift-framework/content/sf-portfolio.php
. Take a look at the functionsf_portfolio_filter()
. This can be easily added to your child theme to override it safely.Thanks.
June 30, 2016 at 11:13 pm #278532This reply has been marked as private.July 4, 2016 at 5:55 am #278843Can you please explain
Take a look at the function sf_portfolio_filter()
We need guidance on what to change.
Thanks.
July 4, 2016 at 9:57 am #278896Hi Mark,
The function
sf_portfolio_filter()
outputs the filter bar containing the terms above the portfolio items. Here you can change the name or the slug output in the filter. The exatct line that outputs the filter links is this:if ($term) { $term_slug = strtolower( $term->slug ); $filter_output .= '<li><a href="#" title="View all ' . $term->name . ' items" class="' . $term_slug . '" data-filter=".' . $term_slug . '">'; if ($term_icon != "") { $filter_output .= '<i class="'.$term_icon.'"></i>'; } $filter_output .= '<span class="item-name">' . $term->name . '</span></a></li>'. "\n"; } else { $tax_slug = strtolower( $tax_term ); $tax_slug = str_replace(' ', '-', $tax_slug); $filter_output .= '<li><a href="#" title="View all ' . $tax_term . ' items" class="' . $tax_slug . '" data-filter=".' . $tax_slug . '"><span class="item-name">' . $tax_term . '</span></a></li>'. "\n"; }
The exact change you want is a customisation that is beyond our scope of support as it is more work than a small customisation, so you would need to work with a developer for this implementation or re-consider improving your category/tag setup for portfolio items.
Thanks,
David.July 5, 2016 at 12:02 am #279120This reply has been marked as private.July 7, 2016 at 9:45 am #279642Hi Mark,
Is the goal just on a filterable page?
From your initial request if I understand it right you want multiple portfolio categories with the same name but a different slug to be able to be filtered uniquely?
Thanks.
July 8, 2016 at 12:26 am #279845Hi David,
Yes you are correct.
Need multiple categories with same name but use the slug to filter.
At the moment we have to use a “.” at the end of the category name to make it happen. Looks messy and unprofessional.
Any help would be greatly appreciated.
Mark
July 11, 2016 at 5:13 pm #280532Thanks, I am looking into this currently.
July 11, 2016 at 5:19 pm #280533If you can add your FTP details for me I’d like to test out what I believe to be working for me.
1) Please install and activate your child theme.
2) Please provide the portfolio URL for me
3) Ensure your portfolio items and published as you require them to be (aka currently broke). The can be output on a reduced test case page, limiting the item output to only two categories as an example.Thanks.
July 12, 2016 at 12:42 am #280585This reply has been marked as private.July 12, 2016 at 9:13 am #280636Thanks, can you test this out now: http://flintsydney.com/toby-dixon/photography/
– David.
July 12, 2016 at 9:39 am #280646Perfect!
Fantastic.
You guys are brilliant.
What did you do? Will any future updates retain this fix?
July 12, 2016 at 9:47 am #280658No problem. The function
sf_portfolio_filter
is in the child themefunctions.php
so it will be retained through all updates.If you have found us helpful to your business, we do appreciate it if you provide a good rating/feedback on our TF item.
-
Posted in: Uplift
You must be logged in and have valid license to reply to this topic.