• 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

    (@dsortax)

    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: https://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: https://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 https://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.