queue  45
support
Results 1 to 3 of 3

Thread: Desactivate link to portfolio projects

  1. #1

    Desactivate link to portfolio projects

    Hi, Is it possible to desactivate the links to projects on the portfolio projects on the home page ?

    Thank you

  2. #2
    Lead Support Ante's Avatar
    Join Date
    Oct 2012
    Posts
    16,930
    Hi,
    add this to your Custom JS field in Theme Options panel:
    Code:
    jQuery( function( $ ) {
    
    jQuery( '.section-type-portfolio-grid' ).on( 'click', '.portfolio-item a', function( e ) {
    
    e.preventDefault();
    
    });
    
    });
    and this to Custom CSS:
    Code:
    .section-type-portfolio-grid .portfolio-item a {
    cursor: default;
    }
    That should do it.

  3. #3
    Thanks !