Add links to the employees pictures


I noticed that I can add links to the employees names but is it possible that these links are added to their pictures also?


Lucas Oliveira

Hello Lucas,

Thank you for getting in touch.

To accomplish it, try doing 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( $('.widget_rocked_employees').length ) {
         $('.widget_rocked_employees .roll-team').each(function(){

           var link = $(this).find('.info h3 a').attr('href');

           if(link != undefined) {
             $(this).find('.photo').wrapInner('<a href="'+link+'"></a>');


  1. Update

Clear/flush any applied cache as it prevents the new code addition to take immediate effect.


Oh cool I didn’t knew how I could implement javascript on a theme / child-theme! I think I would need to call it at a ‘functions.php’ file but this plugin is awesome.
And the code worked perfectly!

Thank you so much Kharis!

Best regards.

Lucas Oliveira

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.