0

How do I make the following output in white text? span? div?

<?php global $current_user;
  get_currentuserinfo();
  echo 'Welcome, ' . $current_user->user_firstname . "\n";
?>

1 Answer 1

1

Try

echo 'Welcome,<span class="white-text">' . $current_user->user_firstname . "</span>\n";

css

.white-text{
 color:white;
}

you can either use span and div.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.