Login With Ajax
Add a link to widget (6 posts)

  1. danicasati
    Posted 3 years ago #

    It would be possible to add a new link on widget?
    So, I need to put into widget the same redirect URL after login.

    For example, if username is MYUSER, I need to put this link into widget:


  2. voji91
    Posted 3 years ago #

    hi there,
    1.in your wordpress menu go to Plugins-> Installed Plugins
    2.under "Login With Ajax" select Edit
    3.from the right sidebar choose : login-with-ajax/widget/widget.css
    4.then the right sidebar will update so choose : login-with-ajax/widget/default/widget_in.php
    5.go down in the codes (center of the page) and find this line : //Admin URL
    6.you can add your code here, something like this :

    if (get_user_meta( $current_user->ID , 'user_login' , true) == 'MYUSER' ) : ?>
    		<a href="http://mysite.com/MYUSER">MYUSER</a><br/>
    		<?php	endif; ?>
  3. danicasati
    Posted 3 years ago #

    Thank you, but I think it would be better to add an option from CONTROL PANEL, because when I update the plugin, I loose all modifications.

  4. voji91
    Posted 3 years ago #

    yes that would be great, but i'm not developer, I'm a member just like you :)

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    @voji91 cheers for chipping in!

    @danicasati see our notes section on the plugin page, you can do this by copying the file to your theme and not losing it on upgrades.

    That said, I like the idea of adding custom html options, will note this down for an upcoming update

  6. danicasati
    Posted 3 years ago #

    Please, update me when you'll release next version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Login With Ajax
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic