Get header button link to open in new tab

I added a URL to the button on my header in Astrid and it redirects to that page. Is there any way to get that button to open into a new tab so it doesn’t navigate off the website?

Hello @holly6,

You can try to do this with jQuery.

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

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

        jQuery('a.button.header-button').attr('target', '_blank');

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

Kind Regards, Roman.