Link to home
Start Free TrialLog in
Avatar of Jon Imms
Jon ImmsFlag for United States of America

asked on

Redirect 301 in a new tab/window

Hi All,

I am trying to figure out how to get a 301 redirect in Wordpress to open in a new window?

I am using the Simple 301 Redirect tool with Wordpress

My website -- On the sidebar, I have a redirect in place for the Apply Now link. The only problem, is it opens in the same window, I'd like it to redirect to the new site in a new tab/window.  

Is this possible, and if so, how?
Avatar of Lucas Bishop
Lucas Bishop
Flag of United States of America image

Target the window to "_blank":
https://html.com/attributes/a-target/#a_target8221_blank8221_Open_in_New_Browser_Tab_or_Window

Here is your current code:
<a href="https://cheerful-spiders.flywheelsites.com/careers/company-drivers/apply-now/">Apply Now</a>

Open in new window


With target _blank:
<a href="https://cheerful-spiders.flywheelsites.com/careers/company-drivers/apply-now/" target="_blank">Apply Now</a>

Open in new window

Avatar of Jon Imms

ASKER

I understand  target="_blank.

For this though, The site automatically creates the pages menu in the sidebar. I'm then redirecting the link to another site using 301. so i cannot use target="_blank
Targeting is how this is done. It sounds like your issue is actually with the system hat manages your navigation. Is there no way to specify a target in the system that manages your navigation? That's what you need to be addressing.
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial