• WordPress.com
  • Forums
  • Plans & Pricing
  • Log In
  • Get Started
  • WordPress Hosting
  • Domain Names
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • Enterprise
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • WordPress.com Support
  • News
  • Website Building Tips
  • Business Name Generator
  • Logo Maker
  • Popular Topics
  • Daily Webinars
  • Learn WordPress
Get Started
  • Sign Up
  • Log In
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • Domain Names
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • Enterprise
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Support
  • News
  • Website Building Tips
  • Business Name Generator
  • Logo Maker
  • Popular Topics
  • Daily Webinars
  • Learn WordPress

WordPress.com forums

Get help with WordPress.com, the free blogging platform, and the WordPress.com apps.

en WordPress.com Forums Log in/Log out

Log in/Log out

  • gunsnwar · Member · Jul 23, 2013 at 12:53 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Is there absolutely any way to add a log in/log out widget?
    If yes is it possible to make it in a way that the log in option appears only when someone is not logged in and the log out option appears when someone is logged in?

    The blog I need help with is: (visible only to logged in users)

  • kardotim · Member · Jul 23, 2013 at 1:07 pm
    • Copy link Copy link

    You can use the Meta Widget for this: http://en.support.wordpress.com/widgets/meta-widget/

    Please let us know if you need any further assistance!

  • gunsnwar · Member · Jul 23, 2013 at 8:08 pm
    • Copy link Copy link

    Well, I’m aware of the Meta Widget, but it includes more options than what I’m looking for (I’m already using the Meta Widget).
    So, is the way to make a similar widget (probably by adding some sort of code to a text widget) so that it works like the Meta Widget (without including all the other options)???

  • kardotim · Member · Jul 24, 2013 at 5:15 am
    • Copy link Copy link

    Sure, you can use the following code in a Text Widget to show a Login and Logout link:

    <a href="http://gunsnwar.wordpress.com/wp-login.php">Login</a><br />
    <a href="http://gunsnwar.wordpress.com/wp-login.php?action=logout&redirect_to=http://gunsnwar.wordpress.com%2F">Logout</a>
  • gunsnwar · Member · Jul 24, 2013 at 6:08 am
    • Copy link Copy link

    Pretty awesome! Thanks!

  • kardotim · Member · Jul 24, 2013 at 6:18 am
    • Copy link Copy link

    You’re welcome. Please let us know if you need any further assistance!

  • gunsnwar · Member · Jul 24, 2013 at 9:31 am
    • Copy link Copy link

    Oh! One more thing!
    I know that what I’m going to ask can be done on wordpress.org, but at the moment I want to stay here, on wordpress.com.
    Is there a way to make a text widget with the code that you give me earlier (thanks again!), but make it an way so that the Log in appears to logged out users, while the Log out appears to logged in users?
    If not, it’s okay, I’ll just make a couple of modifications to the one above and then start using it!

  • raincoaster · Member · Jul 24, 2013 at 9:34 am
    • Copy link Copy link

    Not on WordPress.com. There might be on WordPress.org.

  • gunsnwar · Member · Jul 24, 2013 at 9:40 am
    • Copy link Copy link

    Hm..Okay then! No problem.

  • The topic ‘Log in/Log out’ is closed to new replies.

Tags

  • log out
  • log-in
  • widget

About this topic

  • In: Support
  • 3 participants
  • 8 replies
  • Last activity 11 years
  • Latest reply from gunsnwar
Advertisment

WordPress.com

WordPress.com WordPress.com Logo

Products

  • WordPress Hosting
  • Domain Names
  • Website Builder
  • Create a Blog
  • Professional Email
  • P2: WordPress for Teams
  • Website Design Services
  • Enterprise Solutions

Features

  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps

Resources

  • WordPress.com Support
  • WordPress Forums
  • WordPress News
  • Website Building Tips
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
  • Daily Webinars
  • Learn WordPress
  • Developer Resources

Company

  • About
  • Partners
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users

Language

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Twitter Twitter Icon
  • WordPress.com on Facebook Facebook Icon
  • WordPress.com on Instagram Instagram Icon
  • WordPress.com on YouTube Youtube Icon
An Automattic contraption
Work With Us
    • WordPress.com Forums
    • Customize
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions