Display Member's Name on a Page After They Are Logged In

Display Member's Name on a Page After They Are Logged In

Display Member's Name on a WordPress Page

To display the member's name in your content (for example, on the new member welcome page), use the shortcode:
Notes
[mw name]

Display Member's Name on Other Website Platforms

To display the member's name on other websites such as SquareSpace, Weebly, Wix, Duda, Without Code, and other HTML5 websites (with the exception of Wix), use the following HTML tag wherever you want the name to appear:
Notes
<span class="SFnam"></span>

Then add the following script once at the bottom of the page (if you are using those tags only on specific pages) or in the site footer (if you want to use this tag throughout the site):
Notes
<script>(function(){var i,j,a,x;try{x=localStorage.getItem("SF_nam");}catch(e){x="";}try{for(a=document.querySelectorAll(".SFnam"),i=a.length-1;i>=0;i--)a[i].innerHTML=x?x:"";}catch(e){}try{for(a=document.querySelectorAll(".SF_li"),i=a.length-1;i>=0;i--)a[i].style.display=x?"":"none";}catch(e){}try{for(a=document.querySelectorAll(".SF_lo"),i=a.length-1;i>=0;i--)a[i].style.display=x?"none":"";}catch(e){}})();</script>

The code above will only work if the page is on the same domain (including HTTP vs HTTPS) as the login page. This does not work if the page is HTTP and the login page is HTTPS and vice versa.

Warning
This feature is not currently available in Wix.