How can I display the current username in the header?I am trying to use: $this->viewer()->username in a PHP block in the header (see screenshot) to write out the current user's username, but it's not working? Maybe that value is not available in that context? Does anyone know any other options to write out the current username?
Answer: 1 • Score 0 • Views: 1671
by Ori K about Best answer