function mytheme_init() { add_filter('comment_form_defaults','mytheme_comments_form_defaults'); } add_action('after_setup_theme','mytheme_init'); function mytheme_comments_form_defaults($default) { unset($default['comment_notes_after']); return $default; } /** * Mace functions and definitions * * @package Mace */ add_action('wp_head', 'add_google_rel_author'); function add_google_rel_author() { echo ''; } /** * Set the content width based on the theme's design and stylesheet. */ if ( ! isset( $content_width ) ) { $content_width = 960; /* pixels */ } if ( ! function_exists( 'mace_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which * runs before the init hook. The init hook is too late for some features, such * as indicating support for post thumbnails. */ function mace_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on Mace, use a find and replace * to change 'mace' to the name of your theme in all the template files */ load_theme_textdomain( 'mace', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 200, null, true ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'mace' ), 'mobile' => __( 'Mobile Menu', 'mace' ) ) ); // Enable support for Post Formats. add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); // Setup the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'mace_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); } endif; // mace_setup add_action( 'after_setup_theme', 'mace_setup' ); /** * Register widgetized area and update sidebar with default widgets. */ function mace_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'mace' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '