Clickable tagline sydney

Hi, is there a possibility with the sydney theme to have a clickable tagline for mobile like a tel nr.? Here’s the link to my website: jkmkasadecor.com
Many thanks in advance and kind regards,

Erik

Hi Erik,

Basically there is no such that option by default. To accomplish it, you’ll need to apply the below custom jQuery code. Follow these steps, please.

  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($) {

  'use strict'

  var tagline = $('.site-description').text();
  var phoneNumber = '07539822783';

  $('.site-description').html('<a href="tel:'+phoneNumber+'" style="color:#fff;">'+tagline+'</a>');

})(jQuery);

  1. Update

Regards,
Kharis

Hi Kharis,

many many thanks for your help, I will try this out later today. It will help a lot since the tel nr is a very visible thing on a front page, and a lot of people get used to clicking it on a mobile, so much easier for them.

thanks again for your help, have a nice day,

Erik

Hi Kharis,

your solution works like a charm.

Many thanks,

erik

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