Tag Info

New answers tagged

2

If you check the source ... 1361 /** 1362 * Allows a theme to register its support of a certain feature 1363 * 1364 * Must be called in the theme's functions.php file to work. 1365 * If attached to a hook, it must be after_setup_theme. 1366 * The init hook may be too late for some features. 1367 * 1368 * @since 2.9.0 1369 * @param string ...


3

add_theme_support( $feature, $arguments ); as you can see have two parameters, $feature and $arguments. $feature is the feaure you need to add theme support for. This parameter doesn't accept an array, only a string. So you would have to add a add_theme_support for every feauture that you would like to include in your theme. In your question, it is ...


0

if you are asking default background image for add_theme_support( 'custom-background'); then it can be set using 'default-image' => get_template_directory_uri() . '/images/pattern.png', complete code will look like below. $args = array( 'default-color' => 'f0f0f0', 'default-repeat' => 'fixed', 'default-image' => get_template_directory_uri() ...


3

You need to use one add_theme_support() call for each feature. Per the Codex, the proper function call is: add_theme_support( $feature, $arguments );


0

From the array above, I think you just left out "uploads". And if you're wanting to be able to upload headers in the admin panel, it's good to include the "width" and "height" in the array as well. $chargs = array( 'width' => 980, 'height' => 60, 'default-text-color' => '', 'default-image' => '', 'uploads' => true, ); ...



Top 50 recent answers are included