In this video session we have discussed about Login form customisation in wordpress in easy steps. Its an step
step guide map to change default login form of wordpress without using premium plugin.
#WordpressTutorialsPoint
#WordpressLearnersHub
#WordpressCustomizations
#LearnWordpressStepbyStep
#WordpressBySanjay
For modifying below all changes you have to write these function and hooks in your active theme's function.php
file.
1. Login page logo
2. Login page logo url
3. Add some links at footer section of login page
4. Change error message in case of invalid login
5. Add Custom message to login page
1. Change the logo: Save Your Logo image as logo.png to login directory you created.
==============
function modify_logo() {
$logo_style = '[style type="text/css"]';
$logo_style .= 'h1 a {background-image: url(' . get_template_directory_uri() . '/login/logo.png) !important;}';
$logo_style .= '[/style]';
echo $logo_style;
}
add_action('login_head', 'modify_logo');
Here we use login_head wordpress action for append this css to the login page's [head] section. We are
changing the background image of h1 tag to our custom logo image and you need to include "!important" to
your css so default logo image is overwritten by it.
2. Change the logo image url: Default logo image url is wordpress.org. If You want to redirect link to
your homepage or other useful stuff link you can follow below simple steps:
=====================
function custom_login_url() {
return '
http://onlinewebtutorhub.blogspot.in/';
}
add_filter('login_headerurl', 'custom_login_url');
Here we use login_headerurl wordpress filter to change the url.
3. Add custom link under login form
==================
function custom_link() {
?][p style="text-align: center; margin-top: 1em;"]
[a style="color: #4da28f; text-decoration: none;" href="
http://onlinewebtutorhub.blogspot.in/"]If you have any query, visit our blog[/a]
[/p][?php
}
add_action('login_footer','custom_link');
Here we use login_footer wordpress filter to change the url.
4. Add Custom information to login page
=========================
function my_login_custom_message(){
// login message to show to users
return "Online web tutor custom logo tutorial";
}
add_filter("login_message","my_login_custom_message");
Here we use login_message wordpress filter to change the url.
5. Login error message customization,
=====================
function my_custom_login_error_msges($error){
// code for custom error messages
global $errors;
//empty_password, invalid_username, incorrect_password, empty_username
$error_code = $errors-]get_error_codes();
$error_msg = '';
if(in_array("empty_password",$error_code)){
$error_msg = "You have no value in password field";
}
if(in_array("invalid_username",$error_code)){
$error_msg = "Invalid username detected";
}
if(in_array("incorrect_password",$error_code)){
$error_msg = "Incorrect passord found, please enter again";
}
return $error_msg;
}
add_filter("login_errors","my_custom_login_error_msges");
Important point to keep in mind, i.e get_error_codes() will return different different error code
for invalid login via username and password
//empty_password, invalid_username, incorrect_password, empty_username
Here we use login_errors wordpress filter to change the url.
Wordpress documentation guide to go thru this,
https://codex.wordpress.org/Customizing_the_Login_FormSOCIAL :
===============
Subscribe :
https://www.youtube.com/channel/UCB2flCo-gW6RhpVVXySqcMgFACEBOOK :
https://www.facebook.com/onlinewebtutorhub/TWITTER:
https://twitter.com/owthubBLOG:
https://onlinewebtutorhub.blogspot.in/Also you can learn Wordpress Custom
===============
Wordpress Theme Development:
https://goo.gl/MZ8maFWordpress Widget Development:
https://goo.gl/Dc2htnWordpress Plugin Development:
https://goo.gl/BA7dYG Wordpress Theme Options Development:
https://goo.gl/Vjv3UbLearn backbone.js here! :
https://goo.gl/Qd2PcsTags
===============
Crash course of login form customizations Without Using a Plugin,
change login page in wordpress Without Using a Plugin,
login form modification in wordpress in 1 video Without Using a Plugin,
complete tutorial for login form customisation in single vide,
complete idea about changing login page in wordpress,
custom login form changes in wordpress Without Using a Plugin,
login form customizations tutorial for beginners,
Step by step to Change WordPress Login Page Without Using a Plugin
Thanks
Online Web Tutor
Keep learning and Sharing :)
About the Site π
This site provides links to random videos hosted at YouTube, with the emphasis on random. π₯
Origins of the Idea π±
The original idea for this site stemmed from the need to benchmark the popularity of a video against the general population of YouTube videos. π§
Challenges Faced π€
Obtaining a large sample of videos was crucial for accurate ranking, but YouTube lacks a direct method to gather random video IDs.
Even searching for random strings on YouTube doesn't yield truly random results, complicating the process further. π
Creating Truly Random Links π οΈ
The YouTube API offers additional functions enabling the discovery of more random videos. Through inventive techniques and a touch of space-time manipulation, we've achieved a process yielding nearly 100% random links to YouTube videos.
About YouTube πΊ
YouTube, an American video-sharing website based in San Bruno, California, offers a diverse range of user-generated and corporate media content. π
Content and Users π΅
Users can upload, view, rate, share, and comment on videos, with content spanning video clips, music videos, live streams, and more.
While most content is uploaded by individuals, media corporations like CBS and the BBC also contribute. Unregistered users can watch videos, while registered users enjoy additional privileges such as uploading unlimited videos and adding comments.
Monetization and Impact π€
YouTube and creators earn revenue through Google AdSense, with most videos free to view. Premium channels and subscription services like YouTube Music and YouTube Premium offer ad-free streaming.
As of February 2017, over 400 hours of content were uploaded to YouTube every minute, with the site ranking as the second-most popular globally. By May 2019, this figure exceeded 500 hours per minute. π
List of ours generatorsβ‘
Random YouTube Videos Generator
Random Film and Animation Video Generator
Random Autos and Vehicles Video Generator
Random Music Video Generator
Random Pets and Animals Video Generator
Random Sports Video Generator
Random Travel and Events Video Generator
Random Gaming Video Generator
Random People and Blogs Video Generator
Random Comedy Video Generator
Random Entertainment Video Generator
Random News and Politics Video Generator
Random Howto and Style Video Generator
Random Education Video Generator
Random Science and Technology Video Generator
Random Nonprofits and Activism Video Generator