Adding links on a person name/job in testimonials

Hello Sydney Community,

I have a new question today regarding the testimonials section.
I added some testimonials and indicated the name and position of the persons’ testimonial.

For instance on my website:
=> http://www.emilie-nerot.com/
=> testimonials section
=> “Audrey S - consultante SEO chez ressoneo”

I would like to add a link to this person’s website on “consultante SEO”.

I this technically doable right now?

Thank you very much,

Emilie

Hello there,

Unfortunately there is no such that option. However, you it can be done using a couple of jQuery code. I am trying to find the possible working code and will update you ASAP.

Regards,
Kharis

Thank you very much Kharis. Take all the time you need. :slight_smile:

You’re welcome and best wishes!

Hi Kharis,

I allow myself to up this thread. ^^
Could you find something relevant. :slight_smile:

Thank you so much!

Eme

Hello Eme,

Please do the following 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($) {

  'use strict'

  if( $('.roll-testimonials').length ) {

    $('.roll-testimonials .customer').each(function(index){
		
      /* Link for employee 1 */
      var url = 'http://site.com/link1';
		
      /* Link for employee 2 */
      if(index == 1) {
        url = 'http://site.com/link2';
      }
		
      /* Link for employee 3 */
      if(index == 2) {
        url = 'http://site.com/link3';
      }

      /* Link for employee 4 */
      if(index == 3) {
        url = 'http://site.com/link4';
      }      

      $(this).find('.name').wrapInner('<a href="'+url+'"></a>');
        
    });
    
  }

})(jQuery);

  1. Update

Let me know how it works.

Thank you for your patience.

Regards,
Kharis

Thank you once again Kharis, it works absolutely perfectly!

Have a lovely sunday,

Eme

Hello Eme,

Thank you for updating me. Glad to hear that the code works well.

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