Hi,
I think my question is so basic that I don't understand why I cannot find the answer by myself and now I am frustrated:
HOW can I add a 'regist to this blog' button to my blog?
Your help is appreciated.
Thanks,
Tami
Hi,
I think my question is so basic that I don't understand why I cannot find the answer by myself and now I am frustrated:
HOW can I add a 'regist to this blog' button to my blog?
Your help is appreciated.
Thanks,
Tami
1. In the admin panel, go to: Settings-> General
2. Tick the Anyone can register check box.
3. Below, select the New User Default Role for the newly registering users.
4. Click the "Save Changes" button.
5. Then use the below code for your register link/ button.
<a href="<?php bloginfo('url')?>/wp-login.php?action=register">Register to this Blog</a>
Thank you very much for your respond.
This leads me to my next question: how do I add a button to my sidebar menu?
Again, your help is much appreciated,
Tami.
You can put the above code in to the sidebar widget.
In Dashboard, Appearance-> Widgets
Note that for executing php code in widget, you may need to install plugins such as PHP code widget, Exec-PHP etc.
By the way, you can add the code as follows if you are using in a text widget:
<a href="http://www.your_site.com/wp-login.php?action=register">Register to this Blog</a>
Easter egg:
Just aware about the different user roles in WordPress when you set the "New User Default Role" in the settings.
http://codex.wordpress.org/Roles_and_Capabilities
Administrator - Somebody who has access to all the administration features
Editor - Somebody who can publish and manage posts and pages as well as manage other users' posts, etc.
Author - Somebody who can publish and manage their own posts
Contributor - Somebody who can write and manage their posts but not publish them
Subscriber - Somebody who can only manage their profile
Thank you! I am going to try it now. I will use the text widget.
You must log in to post.