Create a Contact Form (The Easy Way) using Contact Form 7.

Contact Form 7:

Contact Form 7 is a simple and easy contact form creating tool available in wordpress that can manage multiple contact forms, also can customize the form and the mail contents flexibly with simple authentication and markup. The form supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering and so on.

Creating a simple form using Contact Form.

It’s easy for setting and creating forms in Contact Form 7.You need to go through the simple and easy steps as following:

In the Dashboard on the plugins ,click on AddNew to add new plugin.

i.e:Dashboard>>Plugins>>AddNew.

 

 

Search by Name “Contact Form 7” in the search box and Click on Install button to install the form.

(Note: We can add the plugin manually by downloading the plugin from Contact Form7 and follow the same steps.)

 

 

To activate Click on Activate button ,search for Contact on the left sidebar of Dashboard and Click Contact to create forms change configuration and many more features.

i.e Install>>Activate>>Contact

 

 

The Contact section has 3 parts

  • Contact Forms: part that create ,edit forms,view shortcodes of forms etc.
  • Add New: part used to create new forms and manage the configuration of different forms and their mailboxes.
  • Integration: part used to integrate the form with the rECAPTCHA and others.

 

We can create new forms and modify from here.To create a new form click on Add New and on the Form section add all the required form contents either simply drag and drop the contents given above or by coding HTML codes yourself and click on Save button at the end of the page to save the edited form.

i.e Contact>>Add New>> Form>>Save.

 

In the Mail section you can configure the settings of form. For a simple form you can left it unchanged and continue.

  • Basic header fields (To, Fromand Subject):

These are basic and necessary message header fields; and we can embed mail-tags anywhere in these fields.

  • Additional Headers:

We can insert additional message header fields here, such as Cc and Bcc. There should be one field per line. We can embed mail-tags anywhere in these fields.

 

 

 

The Message section consist of pre-featured messages ,we can change as per our wish.

 

Additional Settings: We can include additional settings to each contact form by adding code snippets in the specific format into the Additional Settings field in the contact form’s edit screen.

 

After the contact form is ready copy the Shortcode given above the form label.

 

 

 

Paste the shortcode on the desired page (better the Contact Us page) and Publish the page .

 

 

Now Click the Contact Us(example) page , the Contact form is published.

 

 

Check our other blogs for better knowledge on different plugins.

 

 

 

 

 

Steps To Review WordPress Theme

Here, I am going to tell about the steps to review a WordPress themes, the WordPress theme means WordPress.org trac themes. if you are a beginner and you want to develop a theme and submit on WordPress.org, the blog will guide you. The proper guidelines must be followed by Author to avoid closing the ticket.
The reviewer must review the theme based on the guidelines.

If u are an author, then review your theme by yourself before submitting.
In reviewing a theme.
1. First of all download the theme that you are going to review.
2. Now put that theme on theme folder of your wp-contents.
3. On wp-config.php file make debug true.
4. Activate the theme in the dashboard.
5. Check the browser and console the error(errors are not allowed)
6. Theme check plugin and NS Theme Check plugins are used to check the Errors. Pass the theme in both the plugin and check the errors.

The plugin review the theme in an automated system, so you need to check the listed below items manually.

1. Security
• Escaped the untrusted data before output.
• Before entering the database proper sanitization and validation is needed.

2. Style and Scripts
• Enqueue the script and style file, it must not be hard coded.
• Unless you provide the original file do not minimize the scripts and files.
• The theme should use ‘WordPress’ default libraries.

3. Prefixing
• The theme function, classes, global variables, image size name, style handles and script, etc should be prefixed with theme slug.

4. Licensing
• The proper license of the third party resources, images, style and script must be included by the theme used on the theme. Your theme should declare copyright as well.

5. Language
• The theme must have a common language, it must be a translation ready. The text string on the theme should also be a translation ready.

6. Tags
• As per mentioned on the required handbook use a proper tag.
• More than 3 subject tag are not allowed. One subject tag should be mentioned in mandatory.

7. Theme Option via Customizer
• All options are expected in customizer. For theme option setting API is not allowed instead use customizer API.
• All the options are expected to work.
• According to the front page setting the theme must display the correct content. Custom section is not allowed.
• Customizing WordPress features is not allowed.

8. Codes
• Only in the front end Expert length needs to be applied.
• The recommended plugin should must be in a WP.org.
• WordPress should be correctly spelled in all public facing text: one word, with uppercase W P.
• Unnecessary files and folders should be removed

9. Content Creation
• Text area is not allowed on customizer and widgets.

10. Dishonest
• Do not use an illegal , dishonest or morally offensive things on a theme.

Above mentioned points are the basic requirements for WordPress themes. check your theme on above based guidelines to avoid closing the tickets.

For Details follow the WordPress Theme Standards.

TGM Plugin Activation (Simple way)

TGM Plugin Activation is a PHP library that allows user to easily require or recommend plugins for your WordPress themes (and plugins). It allows users to install, update and even automatically activate plugins in singular or bulk fashion. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
Here are the simplest method to make available of TGM Plugin(to recommend the plugin for your wordpress theme.)
1. Download the TGM zip file and extract it.
2. Extract the downloaded folder.
3. Copy the class-tgm-activation.php file from extracted folder to the theme where you want to set TGM plugin.
Before copying the acquire theme look like this,

After copying

4. Now, copy the plugins directory also inside the particular theme

5. At last of functions.php file (wp-content>themes>functions.php) copy the content of example.php (inside the extracted TGM Plugin File).

The content copied contains much of comments which you can refine by deleting the comment and deleting the unrequired plugins array and add in the exact format as shown in the example for each type in the example.php file.
Here, I am giving the example of plugins verified in wordpress.org.
Example:

The format is:
    array(
    ‘name’ => ‘Name of Plugin’,
    ‘slug’ => ‘Last name of the plugin site in wordpress.org’,
    ‘required’ => ‘false’,
);

The example is also shown in the image below:

For other plugin than verified in wordpress.org you can use the method shown in example.php file in extracted folder.

I hope it gives a simple way to how to add recommend plugins in the theme.