WordPress.org

Ready to get started?Download WordPress

Forums

Login With Ajax
Change Widget Header (instead of "Log In" (6 posts)

  1. steve02a
    Member
    Posted 1 year ago #

    I'd like to figure out how to change the header of the widget from "Log In" to "Existing Users"....not sure what file/section and code to change.

    Thank you

    http://wordpress.org/extend/plugins/login-with-ajax/

  2. fordrm
    Member
    Posted 1 year ago #

    Steve,
    Did you get an answer to this one, or work out how to do it?

    I'm trying to do exactly the same thing.

    I tried changing the following section of the login-with-ajax.pot file, but it didn't work

    #: widget/default/widget_out.php:10 widget/default/widget_out.php:35
    msgid "Log In"
    msgstr ""

    Regards,

    Robert

  3. steve02a
    Member
    Posted 1 year ago #

    Hi Robert...

    I'm still looking. If I can't find an answer by the end of the week, I'll abandon this plug in and use another (since there like 500 login plugins available...)

  4. fordrm
    Member
    Posted 1 year ago #

    Steve,

    I just cracked this one, after going down a couple of rabbit holes.

    You need to edit the following file:

    /wp-content/plugins/login-with-ajax/widget/default/widget_out.php

    Edit line 10 to use whatever string you want:

    echo $before_widget . $before_title . '<span id="LoginWithAjax_Title">' . __('Member Log-In') . '</span>' . $after_title;

    Hope this helps.

    Robert

  5. steve02a
    Member
    Posted 1 year ago #

    Hi Robert,

    Thank you! That worked perfect. I was working on this over the weekend and completely stumped. Thanks again for this nice little hack.

    Steve

  6. fordrm
    Member
    Posted 1 year ago #

    Hi Steve,

    Glad to be of help. It had me stumped for a while, too!

    If you take a look at login-with-ajax.pot, and search for the literal you'd like to change, it will tell you which file it is in and where:

    '#: widget/default/widget_out.php:10 widget/default/widget_out.php:35
    msgid "Member Log-in"
    msgstr ""'

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.