Tagged: enfold
Hello,
I need to add a category description text, which should be displayed below the list of categories in a portfolio page, when you click on a category name. I have figured out that the filtering of the items for each category is obtained via javascript but I don’t know what to do. My javascript knowledge is very basic. Have a tip?
Hi filippocorretti!
This is a bit complicated. You can hire a freelance developer to modify the portfolio sort function for you.
Regards,
Ismael
Ok thanks for the reply! Another question: is there a simple way to hide the subcategories from the list of categories in the portfolio page or I’m out of luck?
Hello!
I didn’t test this code mod but iot should be possible. Open up /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio.php and replace
if(empty($display_cats) || in_array($current_item_cat->term_id, $display_cats))
with
if($current_item_cat->parent > 0) continue;
if(empty($display_cats) || in_array($current_item_cat->term_id, $display_cats))
Best regards,
Peter