= 3.0 } // remove extra CSS that 'Recent Comments' widget injects add_action( 'widgets_init', 'remove_recent_comments_style' ); function remove_recent_comments_style() { global $wp_widget_factory; remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); } // Removes the [...] from the excertps function new_excerpt_more( $more ) { return '.'; } add_filter('excerpt_more', 'new_excerpt_more'); // add menu support add_theme_support('menus'); // add widget support add_theme_support('widgets'); // add featured image support add_theme_support('post-thumbnails'); // Register man nav menu register_nav_menus( array( 'header_menu' => __('Main Navigation'), 'footer_menu' => __('Footer Navigation') ) ); // Registers Widgets function upchurch_widgets_init() { register_sidebar( array( 'name' => 'Footer copy info', 'id' => 'footer_copy_info', 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

', )); } add_action('widgets_init', 'upchurch_widgets_init'); // Adds Support to SVG in Media function cc_mime_types($mimes) { $mimes['svg'] = 'image/svg+xml'; return $mimes; } add_filter('upload_mimes', 'cc_mime_types'); // disable auto clean up on the wysiwyg remove_filter( 'the_content', 'wpautop' ); ?>