The post How to design registration form frontend in WordPress? appeared first on RegistrationMagic.
]]>Before we start to design registration form, we have set up a demo form – Summer Camp Registration here for the walk-through. It has two distinctive areas separated by read-only paragraph fields with text – Camper Details and Parent/ Guardian Details. It is a single page registration form and has a limit of 100 registration slots.
We’ll also be using a theme with strong visual identity to highlight our changes. We selected Chocolat from wordpress.org repository which is heavy on tints of, you guessed it, brown.
As first step, we will apply Match My Theme style to our form from Global Settings → General. We will also put labels on top since the theme has narrow content area and we do not want to cramp up our fields.
This is how the registration form looks like to begin with.
RegistrationMagic works with Hex color codes. Therefore, to style any element we must first know the color code we need to apply. For non-technical users, Just Color Picker is one such free tool that allows you to find color code for any color you see in your browser.
Let’s start with the custom fields. Some of the customization we will try to do are:
Step 1: Click Settings on the Form Card and go to registration form Custom Fields configuration panel. Then we click on the Edit button on the first field. The icon settings are controlled by these options – Icon, Icon Color, Background Color, Icon Transparency, and Icon Shape. We will match the field icon with those on the sidebar of our theme. The color codes for the icon and background are:
We keep the shape round and do not increase transparency.
Here’s how the first registration field looks like on the front end now.
Now repeat same steps and edit each field. Looking better now?
Step 2: To set height and padding of input fields, we’ll add some custom CSS. This step will also demonstrate how to use custom CSS classes with registration form fields. We first head to Appearance → Editor and open default style-sheet. Down below we shall add a new class with following properties:
.custom-field {
padding: 10px;
width: 100%;
}
We copy the class name “custom-field” and hit Update File. Please note, you can use any custom class name that fits your needs. We will be pasting this class name inside our input fields as value of CSS Class Attribute while editing the field. Here’s how it will look like:
The field will look like this:
Now we repeat it for every input type field.
Step 3: To design registration form fields and submit button, we need to go back to Form Dashboard and click on the Design icon. There’re pulsating circles on the button and fields below the representational form, which opens popup settings for fields and button.
We are going to modify following values:
Hit save. We’re almost done! Let’s style the read-only fields.
You may have noticed that we added two read-only paragraph fields in our forms for separating camper and guardian information sections. We want them to stand out a bit. Instead of customizing them, we will use the built-in CSS that comes with the theme and apply a header CSS class. Here we have chosen h4 (You are free to chose any other class like h1, h2, h3…as per the requirement). This is how the edit page looks like after adding the class:
We can add HTML elements to style longer text and apply custom classes to individual portions. Here we are just going to make do with a simple heading. The results?
Now let’s check back the form; It looks nicer and blends in perfectly. You can use this information to add more customization.
With little imagination and some handiwork, it is possible to design registration form to an extent that it appears to be part of the theme we have installed. We’ll back with another installment of our series of tutorials, very soon.
The post How to design registration form frontend in WordPress? appeared first on RegistrationMagic.
]]>