我创造了一个主题。主题was denied today 原因如下:
主题回顾:
主题应使用define(\'WP_DEBUG\', true);
在里面wp-config.php
wp-config.php 是WordPress设置文件。如何更改自定义主题?
主题在函数中注册了一些自定义功能warmHome_setup()
但是,此功能未挂接,因此该功能不可用。建议将主题与after_setup_theme
挂钩warmHome_setup() 作用我应该如何更改它?
function warmHome_setup() {
// This theme styles the visual editor with editor-style.css to match the theme style.
add_editor_style();
// Add default posts and comments RSS feed links to head
add_theme_support( \'automatic-feed-links\' );
// Make theme available for translation
// Translations can be filed in the /languages/ directory
load_theme_textdomain( \'warm-home\', TEMPLATEPATH . \'/languages\' );
$locale = get_locale();
$locale_file = TEMPLATEPATH . "/languages/$locale.php";
if ( is_readable( $locale_file ) )
require_once( $locale_file );
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
\'primary\' => __( \'Primary Navigation\', \'warm home\' ),
) );
// This theme allows users to set a custom background
add_custom_background();
}