How do I get some empty spaces after the current logged in user first name is displayed? Just need a few spaces because it's running into something else.
<?php
if ( is_user_logged_in() ) {
global $current_user;
get_currentuserinfo();
echo '<span class="white-text">Welcome, ' .$current_user->user_firstname . "</span>\n";}
?>
A better way would be not to add more spaces, but add a margin:
<span class="white-text" style="margin-right: 5em;">
Change 5em to some other number to change the amount of space.
echo '<span class="white-text">Welcome, ' .$current_user->user_firstname . " </span>\n";
each is a "non-breaking space"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With