Okay
  Public Ticket #168529
Portfolio Filter generator
Closed

Comments

  • Hugo started the conversation
    Hii Phil, i need ur help in portfolio filter generator. I edited the shortcode-processing's portfolio function in order to hide the option "All" in filter. But now i am facing a problem, since when i use a portfolio item in a page with only two categories, it shows a third one that i didn't picked. I was trying to understand where is done the job to add the class "display:none" on li itens of the portfolio's filter. Can you help me? Regards, HB.
  •  1,086
    ThemeNectar replied

    Hey Hugo, you should undo your file mod and handle this with raw css to avoid update conflicts and coding issues. Once you've updated your file to be the default state again please share with me your URL to the portfolio so I can give you to correct css you need :)

    Cheers

  • Hugo replied

    Hey Phil,

    i was trying to avoid more CSS or more JQuery, and instead of that hide something that i am unnecessarly generating, i was trying to avoid generate the content. But then there was problems with Init.js. So, i gived up of the hard ( and more performance ) solution and instead of that i decided to write a css to hide the "All" option from Portfolio's filter.

    So here's the solution:

    #portfolio-filters li>a[data-filter="*"],#portfolio-filters-inline li>a[data-filter="*"] {

    display:none!important;

    }

    Regards

    HB