Tagged: Portfolio
-
AuthorPosts
-
March 9, 2016 at 7:05 am #595332
Hi,
Is it possible to remove the “all” category on the portfolio filter? I am using the Masonry Portfolio module and my customer does not want the “all ” to be visible. He wants it to default to another category we define.
Thanks so much & kindest Regards,
CorinaMarch 9, 2016 at 7:48 am #595355Hi Corina!
You can add this to the Quick CSS field:
a.all_sort_button.active_sort, a.all_sort_button.active_sort + span { display: none; }
Add this to the functions.php to activate the first category:
add_action('wp_footer', 'ava_auto_click'); function ava_auto_click(){ ?> <script> (function($){ $(window).load(function() { $('.categoryname_sort_button').trigger('click'); }); })(jQuery); </script> <?php }
Change the “categoryname” to the name of the first category on your installation.
Best regards,
BasilisMarch 9, 2016 at 8:07 am #595361Hi Basilis
Thanks so much for your super quick answer… The script works in changing the default category, but I still have the “All” category displaying. Not sure if I did something wrong. I placed the css in the custom CSS. I am working with a child theme.
here the link to the page on the development server: http://pre.colorit.ch/frontpage-3/
All the best, Corina
March 9, 2016 at 10:44 am #595445Hey!
Please use the below CSS to hide the filters marked in RED.
/*Hide Category */ #js_sort_items .sort_by_cat { display: none !important; }
Cheers!
Vinay Kashyap- This reply was modified 8 years, 8 months ago by Vinay.
March 9, 2016 at 10:47 am #595449Hi Vinay
Thanks for getting back to me on this. This hides all the filters though. My client just does not want to have “ALL” (on the left of the filters) … he does want to have the rest of the filters…Thanks so much.
Kindest Regards,
CorinaMarch 10, 2016 at 6:42 am #596075Hey Corina!
You can use the following CSS to hide only the “All” category:
a.all_sort_button { display: none !important; }
Best regards,
JordanMarch 10, 2016 at 6:51 am #596078Hi Jordan
You guys are just awesome. Thanks so much for your help.
Have a lovely day.
Kindest Regards,
CorinaMarch 10, 2016 at 6:57 am #596082Hey!
Thank you for the kind words :)
Glad we could help! We have put together some info about enfold theme please feel free to check it out here – http://kriesi.at/documentation/enfold/
Best regards,
Vinay KashyapMarch 10, 2016 at 6:58 am #596083June 20, 2016 at 11:59 am #650745Hi, I have made it as you mentioned but I want to delete also this character: / (after All). As you see, it is not beautiful with it :)
http://magneting.sk/n2n/referencie/.
Can you help me?June 21, 2016 at 7:08 am #651299Hi,
Please try the following in Quick CSS under Enfold–>General Styling:
span.tepelne-cerpadla_sort_sep { display:none !important; }
Best regards,
RikardJune 21, 2016 at 9:31 am #651350Thanks, it is working :).
June 22, 2016 at 6:45 am #651926July 11, 2016 at 9:52 pm #659557This fix worked GREAT for us with our team section, but we’re trying to call to a different one on our portfolio section. Can we call to different ones for different sections on the site?
- This reply was modified 8 years, 3 months ago by mediasauce.
July 12, 2016 at 3:29 pm #659935Hi,
Seems like you have already figured it out. To remove the separators, please add following code to Quick CSS as well
span.text-sep.all-team_sort_sep,span.text-sep.all-projects_sort_sep { display: none; }
Best regards,
YigitJuly 13, 2016 at 5:38 pm #660512Launching today. Need an answer ASAP if possible. Thanks!
Still needing help finding a way to call to multiple categories for multiple page sections. Wanting our team page to load “All Team” but the portfolio page needs to load “All Projects” doing this tweak to load All Team breaks our portfolio page since it doesn’t have a category called All Team.
Can we call to separate ones for different pages?- This reply was modified 8 years, 3 months ago by mediasauce.
July 18, 2016 at 8:30 am #661886 -
AuthorPosts
- You must be logged in to reply to this topic.