Support » Fixing WordPress » register link on homepage
8 years, 11 months ago
How can I add a registration link to my homepage? They can only register if they click on add a comment. I want users to be able to see the registration link on my homepage.
This seemed to work for me..
/wp-login.php?action=register”><?php _e(‘Register’) ?>
oops sorry.. its not all there.. I’ll try one more time..
<a href="<?php get_option('siteurl'); ?>/wp-login.php?action=register"><?php _e('Register') ?></a>
Does that go into my index.php in my root or in my theme index?
I have it in my theme index..
I think this one might be better.. Placed in themes index or whichever file..
<a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=register"><?php _e('Register') ?></a>
hmmmm…something odd happened. I added the code into my theme index and now it has Register RegisterRegisterRegisterRegisterRegisterRegister going across the screen. If it helps I’m using sodelicious-black theme.
Possibly this might work?? haha Just shooting in the dark now.. Sorry bout that.. I’m new to this..
<a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=register">Register</a>
I got it, I added the first code you posted in sidebar.php and it works great. Thanks. I’m new to this too, it gets frustrating sometimes.