Employee Carousel Image link

Hi there, I have Employee Carousel on my Sydney theme website, but currently only the name underneath the picture is a hyperlink.

How do I make the image itself a link to a separate page? Currently it has their name and role on:hover, but I can’t find a way to make the image or even just the team-pop a hyperlink?

Thanks,

Alex

Hello Alex,

By default only employee name is clickable. To enable it on entire employee box, you would do the below steps:

  1. Install and activate the TC Custom JavaScript plugin
  2. Go To Appearance > Custom JavaScript
  3. Paste the following code into the provided box
    jQuery(function($) {

      if( $('.elementor-widget-athemes-employee-carousel').length ) {
          $('.elementor-widget-athemes-employee-carousel .team-item').each(function(){
            var link = $(this).find('.name a').attr('href');

            if(link != undefined) {
              $(this).find('.pop-overlay').wrapInner('<a href="'+link+'"></a>');
              $(this).find('.avatar').wrapInner('<a href="'+link+'"></a>');
            }

          });
      }

    });
  1. Update

Regards,
Kharis