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, 5 months ago](https://wordpress.org/support/topic/plugin-wp-userlogin-widget-code-question-about-link-1/)
 * Hello. I use this plugin and i want the register button to open in a new page
   but i can’t figure out how to fix it. Each time i put this code
 * `target="_blank"`
 * it tells me: syntax fatal error
 * Here is the place i found where i try to put target blank
 *     ```
       if(get_option('users_can_register')) {
       		$register =  "\n<"a href=\"". $wp_url ."/wp-login.php?action=register\">".__('Register')."</a">" ;
       	}
   
       	else{
       		$register = "";
       	}
       ```
   
 * I added ” before the a letter and ” after the /a so you can see the code without
   having a “link”

Viewing 1 replies (of 1 total)

 *  Thread Starter [dsortax](https://wordpress.org/support/users/dsortax/)
 * (@dsortax)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-userlogin-widget-code-question-about-link-1/#post-1328161)
 * I cant edit my post ><
 * Here is the complete coding of the plugin
    lol too much backticks for codes i
   give up
 * well it gives an idea
 *     ```
       /*
       Plugin Name: WP-UserLogin Widget
       Plugin URI: http://wayofthegeek.org/downloads/wp-userlogin/
       Description: Adds a UserLogin Widget to display login form or dashboard links depending on login status.
       Version: 4.0
       Author: Jerry Stephens
       Author URI: http://wayofthegeek.org/
       */
       ```
   
 * [**Moderated:** Too much code. Please consider placing the code in a text file
   on your site with a link here -or- use a pastebin service such as [http://wordpress.pastebin.com](http://wordpress.pastebin.com).
   Thanks!]

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, 5 months ago](https://wordpress.org/support/topic/plugin-wp-userlogin-widget-code-question-about-link-1/#post-1328161)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
