Not sure if related, but I just noticed a new issue with my website. When going via the address “tf2tightrope.com”, my browser end up at “https://tf2tightrope.com/” instead of “https://www.tf2tightrope.com/”.
My website fails to load and ends up with the error message:
Warning: Cannot modify header information – headers already sent by (output started at /home/tftightr/public_html/wp-content/themes/bouquet-child/functions.php:2) in /home/tftightr/public_html/wp-includes/pluggable.php on line 1174
Removing the following fixes the error, but breaks the display of my website:
<?php
function my_theme_enqueue_styles() {
$parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );