WordPress.org

Ready to get started?Download WordPress

Forums

WordPress admin bar (4 posts)

  1. nipun_coolguy
    Member
    Posted 2 years ago #

    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.

  2. michael.mariart
    Member
    Posted 2 years ago #

    What are you trying to add, and what is the code that you're trying to add to the functions.php file?

  3. nipun_coolguy
    Member
    Posted 2 years ago #

    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.

  4. michael.mariart
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.