WordPress.org

Support

Support » How-To and Troubleshooting » Warning: Cannot modify header information

Warning: Cannot modify header information

  • I got this error:

    Warning: Cannot modify header information - headers already sent by (output started at /nfs/c04/h03/mnt/64590/domains/albotas.com/html/wp-content/themes/atahualpa344/functions.php:3) in /nfs/c04/h03/mnt/64590/domains/albotas.com/html/wp-includes/pluggable.php on line 868

    after adding the following code to my theme’s functions:

    <?php add_theme_support( 'post-thumbnails' );?>

    I just randomly threw it at the top of the functions page. Was that the wrong place?

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    @esmi

    Forum Moderator

    I just randomly threw it at the top of the functions page.

    Before or after the original opening <?php?

    I tried sticking it at the very top of the functions page, so before. Then I also tried pasting it at the very bottom and got an error again.

    esmi

    @esmi

    Forum Moderator

    Try adding add_theme_support( 'post-thumbnails' ); to the top of the file – after the opening <?php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: Cannot modify header information’ is closed to new replies.
Skip to toolbar