Okay
  Public Ticket #951522
Portfolio categories inmenu
Closed

Comments

  •  26
    Sira started the conversation

    Hi, guys:

    I'm making some proves to see if your theme suit a client of mine, to buy another license.

    I have added in the menu the portfolio categories, and when I click on one of them, it shows me the correct portfolio items for that category, with a tittle for tha category.

    The poblem is that the filters are shown, so if I click on another category, I get the items for that new category, but the tittle remains the same, and on the menĂº it appears as if I am on the firt category page (the new categorie, with the hasta, is added to the old one: http://pruebas.zac-dg.com/pacpe/?portfolio_category=commercial#high-performance)

    I add an image to explain it better, because I know my explanatiosn is not very good.

    I've tried to add directly a link like this http://pruebas.zac-dg.com/pacpe/?page_id=3283#commercial on the menu, but it don't work unless I have a portfolio category added to the menu using the portfolio categories tab when editing the menu.

    Thank you and best regards

    Sira

  • [deleted] replied

    Hi Sira,

    I understand what exactly you are trying to achieve. That is currently not implemented in the theme, however I will help you to achieve that:

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

    <script type="text/javascript">
    jQuery( document ).ready( function() {

    jQuery( '.portfolio-root-categories .portfolio-category-item a' ).on( 'click', function( ev ) {
    var $title = jQuery( this ).closest( '.pt-column' ).prev().find( 'h1' ).html( jQuery( this ).text() );
    } );

    jQuery( '.portfolio-root-categories .portfolio-category-all a' ).on( 'click', function( ev ) {
    var $title = jQuery( this ).closest( '.pt-column' ).prev().find( 'h1' ).html( 'Portfolio' );
    } );

    } );
    </script>
    And the result will be:

    http://drops.laborator.co/hE6N

  •  26
    Sira replied

    Arlind, as always your support is great, it works perfectly!

    Best regards and have a nice Monday!

    Sira

  • [deleted] replied

    Hi Sira,

    I'm glad to hear that. Have a nice week for you too

    Will set this ticket as solved from here.

  •  26
    Sira replied

    Yes, you can set it as very well solved ;-)