How to add links to icons/pictures in services Widget

Hey I would like to add links to pictures of my services to the right services page. Right now you can only get to the services page by clicking on the Titel but not by clicking on the picture.

Hello there,

To achieve 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( $('.atframework_services_widget').length ) {
          $('.atframework_services_widget .service').each(function(){

            var link = $(this).find('.service-title a').attr('href');

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

          });
      }

    });
  1. Update

Regards,
Kharis

1 Like