Okay
  Public Ticket #1036515
remove -alle- tab portfolio
Closed

Comments

  •  2
    Daphne started the conversation

    Hi,


    I like to remove the -alle- tab at the portfolio page. All the work together looks like a mess. I like to present my portfolio only more categorized with the other (category) tabs.


    Can you help me?


    Thanks in advance!


    Daphne

  • [deleted] replied

    Hi Daphne,

    We haven't implemented such an option and we have added it for the next update. However I can give you a temporary code to achieve that.

    Add this JavaScript code in Theme Options > Footer > JavaScript & Tracking Code > Footer JavaScript:

    jQuery( document ).ready( function() {
        jQuery( '.portfolio-category-all' ).hide().next().find( 'a' ).click();
    } );
    This should work for you.
  •  2
    Daphne replied

    Thanks Arlind,

    Maybe this can be interesting for other people too in the next update.

    With your code, I removed the tab -alle-, but the images from this tab (alle) stay at this link:

    http://www.daphnevandevelde.nl/nieuw/work/

    I only want to show the images here from the first tab fine art, or portraits the second tab.

    From this place you can choose for another tab to look there. I don't need a place where all the pictures are visible, because of the difference in look.

    Thanks in advance

  • [deleted] replied

    Hi Daphne,

    I have restructured that code and it seems to solve this issue:

    jQuery( document ).ready( function( $ ) {
    function hideItems() {
    jQuery( '.portfolio-category-all' ).hide().next().find( 'a' ).click();
    }

        hideItems();
    $.debounce( 200, hideItems )();
    } );

    Can you please check it?

  •  2
    daphnevandevelde replied

    It works, thanks!

    I want to thank you for your great help!


    Daphne

  • [deleted] replied

    I am glad to hear that Daphne.

    Have a great day.