I am trying to make a place to put a widget in the center on the footer. My code here seems to be correct but I get another error on a dfferent line.
register_sidebar( array (
'name' => __( 'Center Footer Widget Area', 'baris' ),
'id' => 'center-foot-widget-area',
'before_widget' => '<div id="%1s"><div class="widget-wrapper %2s">',
'after_widget' => '</div></div>',
'before_title' => '<h3 class="widget-title clearfix">',
'after_title' => '</h3><div class="clear"></div>',
));
The error is “Fatal error: Call to undefined function add_theme_support()”
Is there a way to fix this?