Forums

[resolved] Custom search widget - i can't login anymore (3 posts)

  1. nlaspf
    Member
    Posted 5 years ago #

    I'm trying to customize the default search widget, using the code from http://automattic.com/code/widgets/themes/ (the "The search widget is still ugly..." part). I got that code and added it to my functions.php file.

    It works fine, but when i try to go to wp-admin i get this error:

    Warning: Cannot modify header information - headers already sent by (output started at wp-content\themes\cmaccess\functions.php:24) in \wp-includes\pluggable-functions.php on line 272

    What am i doing wrong?

  2. Otto
    Tech Ninja
    Posted 5 years ago #

    Your functions.php file must produce no output. That is, the very first line must be <?php and the very last line must be ?>. No blank lines before or after those are allowed. Double check your edited file and remove any blank lines (or spaces or whatever) at the beginning or end of the file.

  3. nlaspf
    Member
    Posted 5 years ago #

    Yup, that did it. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.