• Resolved mattemar

    (@mattemar)


    Hi there,

    I’ve been reading the supports ticket from the other users but I couldn’t find a solution.

    As you can see from the title of the topic, I’m looking to replace the voice “profile” with welcome (username). You had gave already an answer to a different user with a solution but it doesn’t work in my case. I went to edit the function of the plugin and there are not 346 lines but less then 100 tough.

    I’ve tried anyway adding the string:

    $user_info = get_userdata( get_current_user_id() );
    $content = $content != ” ? $content : __( ‘Welcome, ‘, ‘login-logout-register-menu’ ) . $user_info->display_name;

    but when I tried to update, the page keeps loading and the website goes down, so I have to remove completely the plugin from the cpanel to get the website back. Could you please help me finding a solution? Thank you

    P.S: Well done with the plug in!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mattemar

    (@mattemar)

    Little update.
    I’ve found the file class-login-logout-register-menu-public.php and I’ve changed the string:

    $content = $content != ” ? $content : __( ‘Profile’, ‘login-logout-register-menu’ )

    to this one:

    $user_info = get_userdata( get_current_user_id() );
    $content = $content != ” ? $content : __( ‘Welcome, ‘, ‘login-logout-register-menu’ ) . $user_info->display_name;

    After done that, I’ve checked the home page but nothing changed, still showing “profile”. Also I don’t know why, but if I try to edit the .php from wordpress, it keeps loading and desn’t update the file. I had to do this by ftp.
    Thanks anyway for your attention and I look forward to hearing back from you soon.

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    I hope you are well today and thank you for your question.

    Could you please tell me where you are displaying the profile URL and share me your site URL where it’s displaying so that I can help you?

    Best regards,

    Thread Starter mattemar

    (@mattemar)

    This is the website

    https://www.cheapbannersinslough.com/

    The profile button is on the header menu

    Thanks!

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    If you are displaying it in your site menu then it is a static text added in the menu which you can change from Menus screen.

    Thread Starter mattemar

    (@mattemar)

    Oh I see, I’ve found a different plugin that does what I’m looking for (to use together with your), is called “users menu”. It might be useful for other people to know how I’ve solved this issue.

    Thank you so much for help anyway!

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    Awesome great to see you got that resolved.

    Thanks for helping out here in this forum by sharing the solution.

    Your help here is really appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change Profile voice to Welcome (username)’ is closed to new replies.