• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Bent Corner

Bent Corner

a smell of wine and cheap perfume

  • Home
  • About Me
  • Contact Me
  • My eBay Store
  • Log In/Log Out
Home > WordPress > How to create a clickable icon log in/log out link in WordPress

How to create a clickable icon log in/log out link in WordPress

How to create a clickable log in/log out link in WordPress - Bent Corner

If you would like to have a clickable padlock icon link in WordPress that allows you to log in or log out, follow these easy steps:

1. In WordPress, go to Appearance > Theme Editor.

2. On the right, select functions.php.

3. Scroll to the bottom of the page and copy and then paste the following lines of code:

4. At the bottom-left of the screen, press Update File.

Copy and then paste the following shortcode where you want the link to appear:

[login_logout_link]

Where ever you placed the above shortcode, a padlock icon will appear. If you are logged in, the padlock icon will appear unlocked.

Clicking the unlocked padlock icon will log you out. Once you are logged out, the padlock icon will appear locked.

Clicking the locked padlock icon will take you to the login page.

I recommend placing the shortcode on the footer, but you do you.

How To WordPress

About Rick Rottman

My name is Rick Rottman, and this is my personal website. I was born and raised in Southern California, but I've lived most of my adult life in Maryland.

Reader Interactions

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Social

  • Facebook
  • Instagram
  • Pinterest
  • Threads
  • Twitter

Subscribe

Get an e-mail notification when I publish a new post. Easy like Sunday morning.

Recent Posts

  • Will eBay reseller discrimination be the civil rights issue of 2026?
  • Your eBay account is restricted!
  • If you want to sell Pokémon cards, you need to grind
  • The Dragon Con Policy on AI Art Is so Serious, It’s Secret
  • Dibdit is Infected with Petty, Ridiculous Reseller Drama

Currently Reading

Harlan Ellison Greatest Hits

RSS ICv2 RSS Web Feed

  • Review: ‘Iliad’ (Board Game)
  • Pro: December 2025 Circana BookScan - Top 20 Adult Graphic Novels with Actual Sales
  • December 2025 Circana BookScan - Top 20 Adult Graphic Novels
  • Preview: 'The Fury of Firestorm' #1 and 'Zatanna' #1
  • FanRoll Unveils 'Dragon Pen with Mini Dice Set and Character Sheet'
  • Preview: 'Corpse Knight' #1
  • New 'Grand Archive TCG' Capstone Set Revealed
  • New Wave of 'Batman' 'Squaroes' Incoming
  • Kayou Limited Will Release a New 'My Little Pony CG' Booster Set
  • Oni Press Hires Kickstarter's Sam Kusek

Bent Corner © 2005–2026