jcockroft64 / sierrahiking

Contains all the raw files for sierrahiking.net
GNU General Public License v3.0
2 stars 0 forks source link

Create a separate Registration page #85

Open jcockroft64 opened 1 year ago

jcockroft64 commented 1 year ago

Create a Registration Page similar to the Sign-On page.

Page should have a background image. Include a nicely finished "boxed" section where person enters their user name and password. As well, have a section to provide alternative to register with their google, facebook or twitter login.

russellelliott commented 1 year ago

ProfilePress

I found a plugin that enables the creation of a custom registration page by creating a form, inserting it into a page as a shortcode, and setting that page as the registration page

Plugin link: https://wordpress.org/plugins/wp-user-avatar/ More info: https://kinsta.com/blog/wordpress-user-registration-plugins/#ProfilePress

ProfilePress delivers support for an unlimited number of forms and password fields, all for free. You can redirect users to different pages after actions like logins, registrations, and password resets.

Form can be inserted into any page as a shortcode https://profilepress.com/article/custom-wordpress-registration-form/

Having done that, all visit to http://yoursite.com/wp-login.php?action=register will be redirected to your front-end custom registration page.

Create custom Wordpress registration page https://profilepress.com/article/create-custom-wordpress-registration-page/

First, make the registration form

russellelliott commented 1 year ago

Update; I've installed the plugin and made a basic registration page. The social login buttons have also been added. Clicking the "register" link on the login page automatically redirects to the custom login page. https://www.sierrahiking.net/register/

The registration form is represented as a short code. Shortcodes can also be used for user profiles and account pages as well as login pages and ecommerse (checkout, order success and failure)

The plugin also made the following pages: Another login page: https://www.sierrahiking.net/log-in/

User profile page: https://www.sierrahiking.net/my-profile/

My Account: https://www.sierrahiking.net/account/

Member Directory: https://www.sierrahiking.net/member-directory/

Reset Password: https://www.sierrahiking.net/reset-password/

E-commerce related pages; I put them in the trash

russellelliott commented 1 year ago

Added the ProfilePress login form shortcode to the login page. Login and logout work. Set as the default login page. https://www.sierrahiking.net/login/

russellelliott commented 1 year ago

You can customize redirects from logging in or logging out https://profilepress.com/article/redirection-settings/ ProfilePress -> Settings -> General -> Redirection

I set the login to redirect to the master map like the old login button did. Originally redirected to the Wordpress Dashboard.

russellelliott commented 1 year ago
  1. Copy-pasted the section structor from Elementor editor
  2. "Login Buttons Code" Elementor Custom Code now applies to registration page to center the social media icons
  3. "Login Page" Elementor Custom Code now applies to registration page as to match the styling of the login page.

How I did the styling: For step 2 and 3, go to Elementor->Custom Code, then click edit on the code in question. In the edit menu, click "Edit" in the "Conditions". From there, add a rule for a singular page and specify the page to add the rule to.

Here's how the registration page looks

Registration Page Layout 12-31-22 526pm