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:
- Install and activate the TC Custom JavaScript plugin
- Go To Appearance > Custom JavaScript
- Paste the following code into the provided box
jQuery(function($) {
if( $('.sydney_action_widget a').length ){
$('.sydney_action_widget a').attr('target', '_blank');
}
});
- Update
Regards,
Kharis
aThemes Support
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