Title: [Plugin: WP-UserLogin Widget] Code question about link
Last modified: August 19, 2016

---

# [Plugin: WP-UserLogin Widget] Code question about link

 *  [dsortax](https://wordpress.org/support/users/dsortax/)
 * (@dsortax)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-userlogin-widget-code-question-about-link-3/)
 * Hello,
 * I want to make the “Register” button open in a new tab/page by using `target="
   _blank"` but I dont know where to put the code… Each time I put this code in 
   the thing it tells me syntax error.
 * Here is the place I try to put it in:
 *     ```
       //Build Submit button, Remember Me box, and links for registations and forgotten password
       	$remember = "<label for=\"rememberme\"><input name=\"rememberme\" id=\"rememberme\" type=\"checkbox\" checked=\"checked\" value=\"forever\" /> ".__('Remember Me')."</label><br />
       	<input type=\"submit\" name=\"submit\" value=\"".__('Log in')."\" class=\"button\" />
       				</form><br />";
       	if(get_option('users_can_register')) {
       		$register =  "\n<a href=\"". $wp_url ."/wp-login.php?action=register\">".__('Register')."</a>";
       	}
   
       	else{
       		$register = "";
       	}
   
       	$recover = "\n<br /><a href=\"".wp_lostpassword_url( $_SERVER['REQUEST_URI'] )."\">".__('Lost your password?')."</a>";
   
       	$submit = $remember.$register.$recover;
       ```
   

Viewing 1 replies (of 1 total)

 *  Thread Starter [dsortax](https://wordpress.org/support/users/dsortax/)
 * (@dsortax)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-userlogin-widget-code-question-about-link-3/#post-1368946)
 * Someone have an idea on where I have to put the code? Or should I use a different
   code?

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP-UserLogin Widget] Code question about link’ is closed to 
new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [dsortax](https://wordpress.org/support/users/dsortax/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-userlogin-widget-code-question-about-link-3/#post-1368946)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
