[Theme: Revera] Child theme: PHP error output header
-
Hi, I was following instructions in terms of how to create a child theme. In any case, I get the following error on my admin login page:
Warning: Cannot modify header information – headers already sent by (output started at /home/content/21/10535121/html/wordpress/examples/template_one/wp-content/themes/Revera-child/functions.php:1) in /home/content/21/10535121/html/wordpress/examples/template_one/wp-includes/pluggable.php on line 1121
This is line 1121
header("Location: $location", true, $status);
This is my functions page in my child theme, and I do realise that the problem is the code here. But I can’t for the life of me figure out why it interferes
<?php function my_updated_copyright($first_year, $owner) { $copyright_notice = '© ' . $first_year; $current_year = date('Y'); if($first_year != $current_year) { $copyright_notice .= ' - ' . $current_year; } $copyright_notice .= ' ' . $owner; return $copyright_notice; } ?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[Theme: Revera] Child theme: PHP error output header’ is closed to new replies.