Call to action button to open in new tab

How do I get the call to action button to open into a new tab?


Hello Linda,

You can add this feature with jQuery.

You did not specify the CTA button. The following instructions are for all buttons.

  1. Please install and activate Insert Headers and Footers plugin that will allow you to insert JavaScript (jQuery) code.

  2. Go to your DashboardSettingsInsert Headers and Footers → add the following code to Scripts in Header section, and click Save button:

<script type='text/javascript'>
        jQuery('a.roll-button').attr('target', '_blank');

You can specify the button by adding parent CSS classes before a.roll-button part of the code above.

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.


Can I ask if this plugin loads any google services? After installing the headers and footers, I realize my website has been timing out. As my target audience are from China, are there other alternatives to opening the tab?

Hello Linda,

This plugin should not load anything other than you inserted into it.

There are other similar plugins, for example Header and Footer.

Also you can go hard way and directly edit .php files (with overriding in a child theme to prevent losing your modifications after theme update).

Kind Regards, Roman.


sorry I have a quick question on an issue I can’t sort out in the Sydney theme:

using the call to action widget there is not an ‘open in new tab’ option, is it possible to do it?
maybe adding something to the ‘Link for the button’ line?

Hope you can help,

Thank you for your kind attention.


I join to kimejoe’s question

It finally worked following Roman’s trick up here!
Thanks Roman

Great, you are welcome Simone!

nir, please create a new topic for your question if you still need help.

Kind Regards, Roman.