[SUGGESTION] Sydney FP: Facts widget url link for each fact?

Hello everyone, I’ve been using Sydney FP:facts widget and it’s really awesome, but I was hoping for a text field that would let you insert a redirect link towards your desired page.

For example:

first fact name: partners
first fact icon: fa-users
first fact value: 10
first fact url: http://www.mysite.com/partners ( optional )

What are your thoughts on this idea ? Any feedback is appreciated.

Hi,

I’m not sure it’s worth adding this as it’s the first time (I think) when somebody requests it, so there might not be a lot of need for it.

However, you just need this plugin and add this code in it:


jQuery(function($) { 
   $( '.name-count:nth-of-type(1)' ).wrap( '<a href="http://justalink.com"></a>' ); 
   $( '.name-count:nth-of-type(2)' ).wrap( '<a href="http://justalink.com"></a>' ); 
   $( '.name-count:nth-of-type(3)' ).wrap( '<a href="http://justalink.com"></a>' );
   $( '.name-count:nth-of-type(4)' ).wrap( '<a href="http://justalink.com"></a>' );
});

Depending on your row color, you might need some CSS for the new links.

Hello Vlad,

I’ve tried your method, but after replacing each link all of them redirect me to the first one.

Keep the code in use and post a link to the page in question please.