• Hello, I’m trying to modify my WordPress Dashboard but whatever code I add to my functions.php file, it shows up verbatim on the top and nothing happens.

Viewing 3 replies - 1 through 3 (of 3 total)
  • What are you trying to add, and what is the code that you’re trying to add to the functions.php file?

    Thread Starter nipun_coolguy

    (@nipun_coolguy)

    I tried to add this code: add_filter('login_errors',create_function('$a', "return null;"));It is to remove the error message that pops up when wrong username/passowrd is typed.

    The problem is not only with this code, but with anything I add to functions.php.

    OK, look at where you’ve added your code the the file. Does this happen anywhere above where your code is:

    ?>

    If the code is being displayed, then I’ll bet that’s your problem. That bit above is a closing PHP tag. Only code between <?php and ?> are parsed as PHP code and anything outside of this is treated as standard HTML text.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress admin bar’ is closed to new replies.