when i try your snipped @caniwigirl with the Theme Accelerate Pro i got following error-message:
“Warning: Cannot modify header information – headers already sent by (output started at /www/**/wp-content/themes/accelerate-pro/page.php:11) in /www/htdocs/**/wp-includes/pluggable.php on line 1196”