Service Widget Pics


#1

Hello there,

I have 6 different pages from my Service Widget on my Home Page. http://patissdelices.com

I would like to make these pics clickable like titles under it is (and so link to the same page). It is not really user-friendly otherwise…:S
I tried to go into the page, but as it is widgetized I can’t figure out how… Please could you tell me how I can achieve it?
Thank you,
Diane.


#2

Hello Diane,

Please 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


#3

Hi Kharis,

Thank you so much! It works :slight_smile:

Diane.


#4

You’re welcome Diane!

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