• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Nile Flores Media

Helping You Rock Out Your Website Like A Rockstar

  • Home
  • About
  • Blog
  • Portfolio
  • Hire Me
  • Resources
  • Contact
  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design
  • News
  • Podcast
You are here: Home ยป WordPress ยป How to Display A User Welcome Message In WordPress

How to Display A User Welcome Message In WordPress

By Nile Flores 41 Comments


Whether you just like to put up a personal greeting or have a site that has quite a few users, something a welcome message is nice. I have seen a few people put this together and have a centralized paged where users can log in, read the personal message, and then go on their merry way using the website.

The code is really simple. This code calls the current user. If you want to only let people like contributors or other roles see the message, you have to adjust the level_0 to any of the levels corresponding with the roles. (Example: administrator is 10).

Please note that you need to be careful on what you greet your visitors. If your normal readers expect you to be goofy, or a little on the strange side, that is fine. However, I have seen a couple sites that have creeped me out with some weird greetings.

<?php global $user_ID; if( $user_ID ) : ?>
<?php if( current_user_can('level_0') ) : ?>
Welcome < ?php global $current_user; get_currentuserinfo(); echo ($current_user->user_login); ?>
<?php else : ?>
<?php endif; ?>
<?php endif; ?>

You can edit the little welcome message to whatever you like.


Filed Under: WordPress Tagged With: wordpress, wordpress tricks, wordpress user message

About Nile Flores

Nile is a 43-year old female from the greater St. Louis (Southern Illinois side) area. Nile is a mother of 1 son. She is also a web designer and developer, a graphic designer, and a public speaker, who exclusively designs and develops using WordPress. She also blogs at GoDaddy's Blog, Verpex Hosting's blog and her very personal sites, Pixelled and Nail Polish Happy.




Related posts:

Edit The Number Of Words For The Excerpt in WordPress How to Change The WordPress Default Avatar Applying Author Gravatar In Post Comments Display First WordPress Full Entry and then Following as Excerpts Brand Your WordPress Login Page Without A Plugin

Reader Interactions

Comments

  1. Peter Fuller MBA says

    January 18, 2012 at 5:50 pm

    Hey Niles

    I already know, but one question for those who don’t, where and how do you add this code.

    Peter

    Reply
  2. Akos Fintor says

    January 18, 2012 at 6:12 pm

    Hey Nile,

    Great tip. Let me see if I can put it to use.
    thanks for the share.

    Akos

    Reply
  3. Jupiter Jim says

    January 18, 2012 at 9:58 pm

    Nile,
    Thanks for sharing this. Welcome message is a great idea! On Thesis Theme this code would probably go in the custom_functions.php file, but like Peter Fuller, who commented above me, I’m wondering which file to paste this code and where on the file?

    Thanks for continuing to share all these tips and tricks with us!!!

    — Jupiter Jim

    Reply
  4. Anonymous says

    January 19, 2012 at 12:46 am

    This is wxactly what I was looking for our blog …thank you so much..

    Reply
  5. Levi Nash says

    January 19, 2012 at 2:11 am

    Thanks for the codes. I haven’t consider doing a welcome page except for the “Thank You Note” after someone left a comment on my post, it’s just that I want them to feel free exploring mys site without any destruction from whatever message for welcome. Thanks for the idea, I’ll think about it.

    Reply
  6. Carrie says

    January 19, 2012 at 2:42 am

    This is what most bloggers need…Thanks a lot for the great post and every informative article…

    Reply
  7. Lily Rose says

    January 19, 2012 at 1:24 pm

    Welcome message is a really good idea. Especially because it’s really not that hard to make it and it gives that personal touch to your blog.

    Reply
    • johnavery says

      January 30, 2012 at 2:25 am

      Amen,Welcome messages along with giving a personal touch can also update us with the current happenings.There are association football club sites which i often visit,when the home page is changed i get instantly connected to the content,either it be a merry Christmas,or club shops opens today.

      Reply
  8. Anonymous says

    January 19, 2012 at 10:59 pm

    I havenโ€™t consider doing a welcome page except for the โ€œThank You Noteโ€ after someone left a comment on my post, itโ€™s just that I want them to feel free exploring mys site without any destruction from whatever message for welcome….details visit:- http://www.newusanews.com/

    Reply
  9. Anonymous says

    January 19, 2012 at 11:01 pm

    I havenโ€™t consider doing a welcome page except for the โ€œThank You Noteโ€ after someone left a comment on my post, itโ€™s just that I want them to feel free exploring mys site without any destruction from whatever message for welcome.

    Reply
  10. Manuel Marino says

    January 20, 2012 at 1:39 am

    weird greetings? can you make a couple of examples? I’m curious ๐Ÿ™‚

    anyway, I don’t like to greet with entire pages, I always think I can make the reader run away.

    It’s better a single line on top of the blog, maybe appearing just for the first 3 visits

    Reply
  11. Venus says

    January 20, 2012 at 3:11 am

    Thanks for sharing this.Wordpress is easy to use and manage but often gives many problem to the users.This made my work simpler.

    Reply
  12. Michael Wong says

    January 20, 2012 at 11:57 am

    The welcome page is a good idea, possibly I might tailor for promotion codes or timely stuff, but I never knew that was possible until I read your wonderful post. Thank you and I look forward to coming back for more tips.

    fb liked it, SU liked it, and dugg it.

    thanks

    Reply
  13. Magic Tricks says

    January 20, 2012 at 12:12 pm

    Maybe I am being stupid but where exactly do I add this code?

    Reply
  14. dev says

    January 20, 2012 at 2:32 pm

    Welcome Message that really a cool idea thanks I will definitely give it a try.

    Reply
  15. Arjee says

    January 20, 2012 at 2:54 pm

    Hi! Good day! Thank you for the mini tutorial. I learned from it. I hope I could learn more about wordpress.

    Reply
  16. Chris Danial says

    January 21, 2012 at 6:23 am

    Very nice post I donโ€™t like to greet with entire pages, I always think I can make the reader run away. Thanks for the sharing, keep up good work.

    Reply
  17. Mike Maynard says

    January 21, 2012 at 4:36 pm

    Interesting tip. I made a note of it.

    Reply
  18. marquita herald says

    January 21, 2012 at 11:25 pm

    Very cool tip! I (also) have a special welcome message for those who leave a comment, but I’ll definitely consider this as well. Thanks!

    Reply
  19. vishvast says

    January 22, 2012 at 12:29 am

    hello nice tips …i was really luking for it frm so many dzzz nw i find it here thnx for this post really nice share

    Reply
  20. Vernette Carbon says

    January 22, 2012 at 8:36 pm

    Hi,

    Thanks for the tip. I have never tried this before and I am really excited to add this new tip to my blog. It’s great finding out new things to make blogs even better. Thanks!

    Reply
  21. Hanna says

    January 23, 2012 at 12:01 am

    Like the others said, “Where do I put the codes?”. I loved your post but lack in additional info. Really, where do we put codes?

    Reply
  22. Kriscia says

    January 23, 2012 at 1:43 am

    I hope this can help and this can work for me…Thanks a lot for the great post..Great job!!

    Reply
  23. Anja says

    January 23, 2012 at 2:11 pm

    Hello Nile,

    Great idea to have a welcome message. I made a note of it but I don’t know where to add the code like the others.

    -Anja

    Reply
  24. Danny Chapman says

    January 24, 2012 at 5:59 am

    Hi,

    for someone who isn’t a coding hero, where would I put this code in order to create the welcome message?

    Reply
  25. Anonymous says

    January 24, 2012 at 7:34 am

    Thanks so much for this Nile. I have some regular contributers to my blog that it would be really great to recognise, and this code will do that for me. Cheers! Louisa

    Reply
  26. Chris Lucernoni says

    January 24, 2012 at 10:06 am

    Thank you for this. I am very new to WordPress and have been trying to pick up some tricks here and there.

    Love your blog by the way.

    Reply
  27. Jordan says

    January 24, 2012 at 4:20 pm

    This is a fantastic idea! Do you know if there is a similar cod for blogger users?

    Reply
  28. sadie-Michaela Harris says

    January 25, 2012 at 11:03 am

    I had no idea that was possible Nile! Great share, I’m sure there are heaps of people who would like to implement a welcome. I’ll share this around, thanks for sharing here ๐Ÿ™‚

    Reply
  29. Shameka Hennagir says

    January 26, 2012 at 5:13 pm

    What a useful tip. This one is probably I want to give a try and I never thought of it that it is possible to display a user welcome message in WordPress. Thanks!

    Reply
  30. don says

    January 26, 2012 at 5:56 pm

    I’m now switching over from weebly to word press it is quite a job for me but thank you very much for the help.

    Reply
  31. Ja-C says

    January 26, 2012 at 9:39 pm

    Thanks a lot for letting us know about this update…gerat job!!I hope you can post more of this too…

    Reply
  32. Lee says

    January 28, 2012 at 8:04 pm

    Good Post – Many blog owners do not do this.
    If you have a welcome page or about us page this can help –
    Nile – Thanks for the info.

    Reply
  33. Lynn Jones says

    January 28, 2012 at 8:56 pm

    Wow, what a great idea. Now if I can just figure out how to do it. Me and WP don’t have a loving relationship. We are kind of distant because one of us doesn’t understand the other very well. ๐Ÿ™‚
    Thanks for sharing a great tip with us.
    Lynn

    Reply
  34. Itender Rawat says

    January 29, 2012 at 3:25 am

    This was a good post. Please let me know is this possible on blogger platform. Waiting for reply. Thanks

    Reply
  35. Katie Woodard says

    January 30, 2012 at 12:43 pm

    This sounds like a cool thing to do. It could make users feel welcome and special if you personalize it. I’m going to do this.

    Reply
  36. Arjun Rai says

    January 31, 2012 at 12:33 am

    Thats really an amazing thing to do for our visitors, i hope they will feel more familiar after this.

    Reply
  37. Carla McNeil, Social Media Manager says

    January 31, 2012 at 10:18 pm

    Very Interesting!

    I have a welcome video on my squeeze page, but I can sure see where this would come in handy on my other site.

    Thanks for the tip

    Reply
  38. Raquel Johnson says

    February 1, 2012 at 4:05 am

    This was a good post. Please let me know is this possible on blogger platform. Waiting for reply. Thanks

    Reply
    • Nile says

      February 3, 2012 at 9:11 am

      Hi Raquel! I do not use blogger, but because it is not open source and most people can only alter the CSS of blogger, I do not think this is possible. However, I would recommend asking Ileane of BasicBlogTips.com. She has used blogger and is far more familiar with Google Blogger.

      Reply
  39. jobin says

    March 14, 2012 at 5:03 am

    Good points…really a great idea thanks I will definitely give it a try.Iโ€™m sure there are heaps of people who would like to implement a welcome….

    http://www.findghar.com

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow Me On:

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!




Try to be More Positive on Social Media

Note: You can click on image and view the video in a larger lightbox window.

Footer

The Blog

Lots of free information, tutorials, and more to help you bring your best foot forward with your website.

  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!

Copyright © 2025 · · WordPress