Login Logout feature kaise banaye website ke liye

Hello friends aaj hume ek bahut he important topic par baat karne ja rahe hain, Kisi bhi website me aapne dekha hoga vaha ek login option hota hai jisske dwara user Login ya register kar sakte hai vo jisse us website ke option ka use vo kar sakte. to chaliye aaj hum bhi hamari website me yah feature add karna sikhte hai hamari is post “Login Logout feature kaise banaye website ke liye” me. Aap hamari is website par bhi dekh dekh sakte hai ek login option dikhai de raha hai. aap yaha login bhi kar sakte hai thik aise hee feature hum sikhne ja rahe hai.

Login Logout feature kaise banaye website ke liye

Dosto is feature ko add karne ke pahle mai aapko bata dena chahta hu ki is feature ke liye aapke paas ek wordpress par bani hui website hona jaruri hai or is tarah ki website banana kitna aasaan hai mai pahle he kai post me bata chuka hu. aap Yaha click karke websitee banana sikh sakte hai.

To yadi aapke paas WordPress website hai to aap is tarike se login option aapki website par add kar sakte hai. dusri main baat yah ki aapko Login option add karne ke liye kai saare plugin ya other option mil sakte hai kintu unse aapke wordpress admin panel ko hide nahi kiya ja sakta aaj hum is post me puri details ke saath yah option add karna sikhenge jisse koi or user hamare WordPress admin panel ko ya WordPress deshboard ko nahi dekh payega. Login Logout feature kaise banaye website ke liye

Step 1

Login Logout feature kaise banaye website ke liye

Aapko aapki wordpress website ya blog me ek Plugin Install karna hoga jiska naam hai Theme my Login aap ise yaha se download kar sakte hai.

Adsense Se jyada earning kaise kare

Download ho jane ke baad ise active kar de. Jab yah active ho jaye to aap aapki website par 3 Page create ho jayenge Jaise : Login, Logout & Register Login Logout feature kaise banaye website ke liye

In tino Pages ko aap Main Menu me add kar  de. Jab aapki website par koi user login nahi hoga to menu me ye 2 Option Login and Register dikhai denge or jab koi register kar ke login kar lega to sirf logout option dikhai dega.

Step 2

WordPress ke sidebar me Login option

Ab aapko aapki website ke Customize option me jakar Widgets area me jana hai or Sidebar ya jaha aap chahe vaha par aapko theme my login ka widgets add karna hai, Jis tarah main meri website par ad add kiya hai.

Widget add karte samay is baat ka dhyan rakhe ki pahla option uncheck ho varna aapki website par login karne wala user aapke dashboard me pahuch sakta hai. Is image ko dekhiye.

Login Logout feature kaise banaye website ke liye

 

Ab kaam yahi khatm nahi hota hai aapko uske baad bhi kuch or step follow karna hogi anytha aapka user login karne ke baad direct wordpress ke dashboard me pahuch jayega.

Step 3

WordPress Dashboard ko hide kaise karen

Jab bhi koi aapki website par account banata hai or login karta hai to vo sabse pahle wp-admin/profile.php is page par pahuch jata hai jaha par usko WordPress ka dashboard dikhai deta hai. User ko dikhaid dene wale option user roal par nirbhar karte hai.

Ab agar aap chahte hai ki koi aapki website par login karke aapke homepage par he rahe to aapko uske liye ek or plugin install karna hoga “Peter’s Login Redirect” Jise aap add new plugin me jakar download kar sakte hai.

Download or active karne ke baad aapko Setting me jana hai jah par ek option dikhai dega Login/Logout Redirect is option ko click karke ek new screen dikhai degi.

 Login Logout feature kaise banaye website ke liye

  1. Add me jakar User role select kare jinke liye aap login page ko direct home page par pahuchana chahte hai jaise Subscribe, Editor ya koi aur.  (Samanytah WordPress me New user as subscribe he hona chahiye to aap vahi select karen.)
  2. Yaha par aap vah url type kare jaha par aapke aauser login karne ke baad pahuch jaye.
  3. Yaha par vah url type kare jaha aap aap un user ko logout kerne ke baad pahuchana chahte hai.

Step 4

WordPress Admin bar kaise hataye

Ab tak jo setting ki humne usse hamari website ke login option proper work kar sakte hai bas hume top me wordpress admin bar dikhai dega jo sabse upar ki or hota. ise hatane bhi hume jaruri hai agar hum ise bhi hata denge to koi bhi nahi pahchan payega ki hamari Website WordPress par bani hai.

iske liye hume ek code hamari website ki function.php me pest karna hoga.

Vah code yah hai. Ise copy kare or Website ki function.php me kahi bhi pest kar de.

add_action('after_setup_theme', 'remove_admin_bar');

function remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
  show_admin_bar(false);
}
}

Function.php file aapko Appearance > editor me milegi.

Is tarah se aap aapki wordpress website me User Login option ad kar sakte hai. or login option ko prperly work bhi kara sakte hai. aapko yah post kaise lagi hume jarur bataye comment are open for you. Please share this post Login Logout feature kaise banaye website ke liye to your friends.  and Like our Facebook Page for more post like this.