WordPress
April 30, 2020

WordPress Login Form Without Plugin

Are you need simple login form without plugin for your WordPress website? Yes, Then i have created [wc_login_form] shortcode with quick simple code. So you can put login form anywhere like in Pages, Posts and Widget etc… Therefore you just need to put [wc_login_form] shortcode where you need login form. So you need to follow below steps.

Code for shortcode.

You need to put below code in theme’s functions.php file. If you have created child theme then add this in function file of child theme.

Code for Login.

In this code i am validating form and log in WordPress on wp action. Add it in functions.php file after above code. If this code will not work then change action wp to init.

WordPress Default Login Form.

Provides a simple login form for use anywhere within WordPress. You can get login form using wp_login_form() function.

Resource


Related Post


Mobile Menu Collapse Effect Divi

Right Now Divi is not providing collapse effect for mobile menu. So when we have many items its hard to manage menu on mobile. It’s a great way to customize the Divi mobile menu using CSS and jQuery. You have to put following code on your css and js files. Put below code on any […]

WooCommerce Redirect to Custom Thank you Page

The below code allows you to redirect to a custom page after the user has successfully completed a purchase when using WooCommerce plugin. Simply add the below code to the active child theme function.php and replace the URL in the function wp_redirect() to the desired page.

Set time Zone by Country

Include the following code file to your current themes functions.php file. Users can see all time by their country timezone wise.

Upload Video or Image in WordPress Media Library

When we use custom form with file upload and we want to upload Video or Image in wordpress media library use following code.

How to create custom widgets in wordpress

Include the following code file to your current themes functions.php file Here is the code for sidebar register.

How to Create Custom Post Type in WordPress

Custom post types are same like posts and pages. By default WordPress comes with a few different post types which are all stored in the database under the wp_posts table. Default Post Types Posts Pages Attachments Revisions Navigation Menus Custom CSS Changesets We can create your own custom post types and call them whatever we […]


Leave a Reply

Your email address will not be published. Required fields are marked *