Tagged: 

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #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,
    Corina

    #595355

    Hi 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,
    Basilis

    #595361

    Hi 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

    #595445

    Hey!

    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, 1 month ago by Vinay.
    #595449

    Hi 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,
    Corina

    #596075

    Hey Corina!

    You can use the following CSS to hide only the “All” category:

    a.all_sort_button {
        display: none !important;
    }

    Best regards,
    Jordan

    #596078

    Hi Jordan

    You guys are just awesome. Thanks so much for your help.

    Have a lovely day.
    Kindest Regards,
    Corina

    #596082

    Hey!

    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 Kashyap

    #596083

    Hi Corina,

    Glad we could help :-)

    Best regards,
    Rikard

    #650745

    Hi, 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?

    #651299

    Hi,

    Please try the following in Quick CSS under Enfold–>General Styling:

    span.tepelne-cerpadla_sort_sep {
    display:none !important;
    }

    Best regards,
    Rikard

    #651350

    Thanks, it is working :).

    #651926

    Hi,

    Great, glad we could help :-)

    Regards,
    Rikard

    #659557

    This 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 7 years, 9 months ago by mediasauce.
    #659935

    Hi,

    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,
    Yigit

    #660512

    Launching 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 7 years, 9 months ago by mediasauce.
    #661886

    Hi,

    I’m sorry but your request is a bit confusing. Could you please explain it a bit further?

    Best regards,
    Ismael

Viewing 17 posts - 1 through 17 (of 17 total)
  • You must be logged in to reply to this topic.