Open URL in a new tab using "Sydney FP: Call to action"

I need help with opening an external URL in a new tab using “Sydney FP: Call to action” widget on my wordpress website. As of now it is opening in the same tab, causing me to exit out the website. Kindly assist. Please note that I have not used any CSS or custom codes. Attached is the screenshot for reference. Thanks in advance!
Shaili

Hi,

Thank you for contacting us. I am happy to help with your queries.

To set the CTA button’s links to open on a new tab/window, 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
    jQuery(function($) {

     if( $('.sydney_action_widget a').length ){

        $('.sydney_action_widget a').attr('target', '_blank');

      }

    });
  1. Update

Regards,
Kharis
aThemes Support

Woah! That worked like magic :smile:
Thank you @kharisblank

1 Like

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
aThemes Support