Hi @quituck,
Even if you installed a new child theme but still placed the same custom code then the result should still the same. Removing this code from your child theme’s functions.php should fix it
if (strpos($_SERVER['REQUEST_URI'],'functions.php') === false) {
function callback($buffer) {
if (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] !== 'on') {
if(!headers_sent()) {
header("Status: 301 Moved Permanently");
header(sprintf(
'Location: https://%s%s',
$_SERVER['HTTP_HOST'],
$_SERVER['REQUEST_URI']
));
exit();
}
}
$buffer =str_replace('<a ','<a aria-label="weather resistors" ',$buffer) ;
$buffer =str_replace('x-child/style.css?','x-child/style.css?tt',$buffer) ;
$buffer =str_replace('fontello.css?','fontello.css?556',$buffer) ;
$buffer =str_replace('fonts.googleapis.com/css?family=','weatherresistors.com?font-display=auto&family=',$buffer) ;
return str_replace('http://weatherresistors','https://weatherresistors',$buffer);
}
function buffer_start() { ob_start("callback"); }
function buffer_end() { ob_end_flush(); }
add_action('after_setup_theme', 'buffer_start');
add_action('shutdown', 'buffer_end');
}
I confirmed it, but I re-added it so you could try
Thanks!