• Resolved antdev

    (@antdev)


    Hey,

    first of all – thank you for that beautiful plugin ??

    I’m using it with Divi builder, so basically use only Saved layouts.

    I have a gallery, each image has assigned category, filter is enabled.

    What I’m trying to achieve is hide all images before any of categories is selected.

    For example, I have 5 categories + one All button. By default plugin loads All section but I don’t need this. I’ve removed name ALl (left it empty) so in filter menu I have only names of my categories and now I want to hide all images until user chose some specific category.

    Can you advise if it is possible?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nikita

    (@nko)

    Hey.

    I think it is possible with custom JS only. You will need to hide images by default using CSS. And then, once the user clicks on the filter, remove your custom CSS to display images.

    Unfortunately, I can’t help you with code, you will need to make it by yourself or with 3rd-party help.

    Regards, nK.

    Here is the jQuery solution. Just replace nth-child(number) by what you want in your case.

    ` jQuery(document).ready(function () {

    jQuery(‘.vp-filter__item:nth-child(2) a’).trigger(“click”);
    });`

    • This reply was modified 4 years, 2 months ago by alexis822.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable “All” filter until category selected’ is closed to new replies.