Dashboard error from sidebar caused by functions.php
-
Hello, I am new to wordpress and have just built my first theme.
I am having problems with the sidebar and it’s widgets. It is making this error display in my dashboard;The error says
warning: Cannot modify header information – headers already sent by (output started at /home/ringuet/public_html/journal/wp-content/themes/ringuet/functions.php:14) in /home/ringuet/public_html/journal/wp-includes/functions.php on line 862This is what the functions.php looks like
<?php if (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'Sidebar Widgets', 'id' => 'sidebar-widgets', 'description' => 'Widgets for the sidebar.', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3>', 'after_title' => '</h3>', )); } ?><code></code>
and this is what the sidebar.php looks like
<div class=”widget-area center”>
<?php if ( ! dynamic_sidebar( ‘Sidebar Widgets’ ) ) : ?><?php endif; ?>
</div> <!– close widget –>
This is the blog I am working on: https://ringuet.com.au/journal/
Can anyone tell what I have coded wrong?
Thanks in advance.
- The topic ‘Dashboard error from sidebar caused by functions.php’ is closed to new replies.