List Widget - open call2action in new tab

Hi all together,

The Sydney FP: List Widget has a URL Call-To-Action-Button which target I’d like to be opened in a new tab.

Is there any way so reach this?
Thank you for your time!

All the best,
Tom

Dear Tom,

The widget setting doesn’t come with that option by default. However, you still have a chance to make it possible by adding jQuery code.

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

  $('.widget_list a.roll-button').attr('target', '_blank');

})(jQuery);

  1. Update

Regards,
Kharis

Wow Kharis, thank you so much for your help! Works perfectly!!! Have a great day :slight_smile: