Skip to:
Content
Pages
Categories
Search
Top
Bottom

Create new login widget

  • @jld142

    Participant

    Hello,

    I am trying to create my own login widget. The reason for this is that i want to add more links and features that just the standard login picture and logout URL.

    I have a child theme and am trying to add a new widget in the functions.php file.
    Can anyone assist me with this ? What code do i need to add to get a new widget up and running ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • @djsteveb

    Participant

    @jld142 – I would think you would find more info about making widgets via the wordpress.org site – and basic bing searches for other resources on that. I would suggest that you look into the other login widget plugins that have already been created and are freely available and gpl in the wordpress plugin repo – (https://wordpress.org/plugins/search.php?type=term&q=login+sidebar ) you may find one that already does everything you are trying to create, or one that you can fork and enhance – just a click away.

    @jld142

    Participant

    Issue Resolved.

    add_action( ‘widgets_init’, function(){
    register_widget( ‘Rew_Login_Widget’ );
    });

    was used to create a new widget, then i simply copied the existing widget into my functions.php and renamed to Rew_login_widget.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create new login widget’ is closed to new replies.
Skip to toolbar