Clickable services in perth

i have found similar questions about clickable services in other athemes. Will there be an update to make services clickable in perth?

Hello there,

In the service post editing panel there’s a service link option which allows you to set a custom link either external or use a link to the respective service details page. If it isn’t displaying by default, click on Screen Options in upper right corner, and tick service icon.

Regards,
Kharis

Dear Kharis

Thank you for your reply.

I have used the service link option, and it is working like a charm, but the link is active only on the text, not on the service icon itself.
I believe users will try to click on the animated icon first and not on the text itself.

When searching for a solution I noticed that this option should already be available in other wordpress Atheme’s but not yet in Perth.
Is there a workaround to make the icon itself clickable in Perth?

Regards
Bert

Hello there,

For Pert’s, try doing these 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
    (function($){

     if( $('.service-area').length || $('body').hasClass('post-type-archive-services') ) {

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

           if(link) {
             $(this).find('.service-icon').wrap('<a href="'+link+'"></a>');
           }

       });

     }

    })(jQuery);

4 . Update

Regards,
Kharis

You are amazing :slight_smile:
I am a new fan of athemes !

Thanks!

Glad to have an opportunity to assist you.

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