Tagged: ajax, categories, category, direct link, enfold, filter, nav menu, navigation, Portfolio, sorting
-
AuthorPosts
-
December 21, 2013 at 3:21 am #202786
Hi guys,
What is the best way to directly link to a display of portfolio items in a specific category? Since I am using the ajax 3-column layout, I would like to also offer a direct link in the main nav menu. I’m using this format but the cookie crumbs are problematic:
The cookie crumbs display like this:
You are here: Home / Homepage / Community
And the page title looks ugly like this:
Archive for: Community
I would like to avoid the “Archive for:” portion and have the page look just like the main portfolio page. Is there perhaps a variable to add to the of the portfolio URL to pre-sort the ajax down to a category?
Thank you!
December 23, 2013 at 11:08 am #203240Hey K!
1) If you just want to display the category name in the breadcrumb (and not the portfolio grid page links, etc.) try to add following code to the theme functions.php file
add_action('after_setup_theme','avia_remove_portfolio_breadcrumb'); function avia_remove_portfolio_breadcrumb(){ remove_filter('avia_breadcrumbs_trail','avia_modify_breadcrumb'); }
2) You can remove the “Archive for” text. Open up /wp-content/themes/enfold/framework/php/function-set-avia-frontend.php and replace
$output = __('Archive for:','avia_framework')." ".$term->name;
with
$output = $term->name;
3) No, the ajax portfolio does not support a pre-sort at the moment.
Cheers!
PeterDecember 24, 2013 at 2:38 am #2034231) Thank you so much for this! It works like a charm on the Portfolio.
2) This is not working for me… I’m using a child theme and trying not to edit the parent theme… I tried:
– Creating framework / php folders and inserting the php file you said to edit, made the prescribed changes.
– Copied the entire framework folder (and subfolders) over to the child theme and edited the php file in the child theme copy, no luck.Any idea how I can apply the change #2 to the child theme only?
Thanks!
KylerDecember 24, 2013 at 6:16 am #203462 -
AuthorPosts
- The topic ‘Enfold: Best way to link to a specific portfolio category?’ is closed to new replies.