HyperLink the Employee Feature Photo also

Hi so when i add the link to the Name of the employee, that Name is the only one hyperlinked. how can i make their featured photo hyperlinked to match the hyperlink in the name?

Also , how can i use the Site Origin feature to design the Single Employee page as there is no tab option for it.

Hello there,

To enable link on the employee photo, 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_perth_employees').length ) {

        $('.widget_perth_employees .employee').each(function(){

          var link = $(this).find('.employee-name a').attr('href');

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


        });

      }

    });

4 . Update

To see the effect, you should flush/clear any applied cache as it usually won’t immediately recognize the new code addition. https://codex.wordpress.org/I_Make_Changes_and_Nothing_Happens

To enable page builder for custom post type like Employee, visit the configuration panel of Page Builder by going to Settings menu > Page Builder; under the General tab, check on Employees.

Regards,
Kharis