Does Astrid service icons support links?

Hi,
I admit there was a qustions like this two years ago :slight_smile:
Trying again…

Those little service icons - can one add linkes to them so the icons themeselves would become clickable?

Thanks,

Amit

Hello Amit,

To enable link to the service image, 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

You guys ROCK!
Thank you Kharis :slight_smile:

-Amit

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.

Regards,
Kharis