WordPress.org

Ready to get started?Download WordPress

Forums

Warning: Cannot modify header information (4 posts)

  1. brownkidd
    Member
    Posted 4 years ago #

    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?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

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

    Before or after the original opening <?php?

  3. brownkidd
    Member
    Posted 4 years ago #

    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.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic