Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1318952
    newskywebsites
    Participant

    Hi there,

    Is it possible with Essential Grid to remove the “All” filter when posting images from a media library – if not, can it be moved to the end of the inline list of filters? See attached screenshot…

    url: http://dawnk.sg-host.com/painting-gallery/

    Latest version of WP, X and Cornerstone.

    Thanks!
    Dawn

    #1319085
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    You can add this under Custom > CSS in the Customizer:

    .esg-filter-wrapper.eg-show-amount.esg-fgc-6 {
        display: none !important;
    }

    Thanks.

    #1319092
    newskywebsites
    Participant

    Thank you, but unfortunately that removed ALL filter options. I’d like to only remove “ALL”

    Thanks!
    Dawn

    #1319112
    Prasant Rai
    Moderator

    Hello Dawn,

    Sorry for the confusion. Please replace the above code with following:

    .esg-filterbutton.selected.esg-allfilter {
        display: none !important;
    }

    Let us know how it goes.

    Thanks.

    #1319131
    newskywebsites
    Participant

    PERFECT!!! Thanks so much!!
    Dawn

    #1319133
    newskywebsites
    Participant

    Oh shoot! I spoke too soon! 🙁 Yes, the “All” filter is removed from the top, however, the images that display initially are still “all” 79 images and not just the 41 “Any Occasion” images that appear in the first filter.

    Is it possible to have the 41 “Any Occasion” images appear when the page first loads instead of all 79 images? Perhaps it’s just a setting in Essential grid?

    We’re so close!!
    THANKS!
    Dawn

    #1319144
    newskywebsites
    Participant

    I tried using the “Start with Filter” field but that breaks your previous code and adds back the “All” filter… is there different code I can use now that I have “Start with Filter” turned on to begin with “alloccasion” ?

    Thanks!!
    Dawn

    #1319145
    newskywebsites
    Participant

    another option that would work is to move “All” filter to the end rather than remove it if that’s easier.

    Thanks!!
    Dawn

    #1319398
    Darshana
    Moderator

    Hi there,

    Can you please try adding the following JavaScript code into your Customizer, Custom > JavaScript area.

    
    jQuery(function() {
      jQuery( ".page-id-414 .esg-allfilter" ).insertBefore( ".page-id-414 .eg-clearfix" );
    });
    

    Hope that helps.

    #1321733
    newskywebsites
    Participant

    Worked like a charm! Thanks so much!
    dawn

    #1321857
    Christopher
    Moderator

    You’re welcome.

  • <script> jQuery(function($){ $("#no-reply-1318952 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>