WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
[resolved] How to Change the Sidebar Widget's "Welcome" Greeting (5 posts)

  1. sassyfrass475
    Member
    Posted 2 years ago #

    I found an easier way to change the sidebar widget's "Welcome" to whatever you want.

    DIRECTIONS

    1.) In your WordPress install go to the folder: wordpress/wp-content/plugins/theme-my-login/includes/
    2.) Open the file: class-theme-my-login-template.php
    3.) Locate the word "Welcome" and replace it with whatever greeting you'd like. For example, replace "Welcome" with "Hello".
    4.) Save the edited class-theme-my-login-template.php document to wordpress/wp-content/plugins/theme-my-login/includes/
    6.) Refresh the page. Now, instead of "Welcome" it should have "Hello" or whatever you put as your personal greeting.

    http://wordpress.org/extend/plugins/theme-my-login/

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    I would never recommend modifying core files. What happens when you update the plugin? You lose the changes. This is why I've provided numerous hooks throughout the plugin, in order to customize it properly.

  3. sassyfrass475
    Member
    Posted 1 year ago #

    Ah, okay. Thanks for the advice.

    So what is the best way to change the "Welcome" greeting? One that will stay put when you update the plugin?

  4. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    Create wp-content/plugins/theme-my-login-custom.php and add the following to it:

    <?php
    
    function tml_title( $title, $action ) {
    	if ( is_user_logged_in() )
    		$title = 'YOUR NEW MESSAGE';
    	return $title;
    }
    add_filter( 'tml_title', 'tml_title', 10, 2 );
  5. sassyfrass475
    Member
    Posted 1 year ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic