Add colors to existing color palette without replacing it

You can merge palettes $existing = get_theme_support( ‘editor-color-palette’ ); $new = array_merge( $existing[0], array( array( ‘name’ => __( ‘Strong magenta’, ‘themeLangDomain’ ), ‘slug’ => ‘strong-magenta’, ‘color’ => ‘#a156b4’, ), array( ‘name’ => __( ‘Light grayish magenta’, ‘themeLangDomain’ ), ‘slug’ => ‘light-grayish-magenta’, ‘color’ => ‘#d0a5db’, ), )); add_theme_support( ‘editor-color-palette’, $new);

How to alter the text of the post “Excerpt” box label in WordPress post editor?

there is a filter hook you can use and it is gettext here: add_filter( ‘gettext’, ‘wpse22764_gettext’, 10, 2 ); function wpse22764_gettext( $translation, $original ) { if ( ‘Excerpt’ == $original ) { return ‘My Excerpt label’; }else{ $pos = strpos($original, ‘Excerpts are optional hand-crafted summaries of your’); if ($pos !== false) { return ‘My Excerpt … Read more

How can I insert default widgets when my theme is activated (similar to what twenty eleven does)?

Johannes Pille is right TwentyEleven’s widgets such as Archives and Meta are hardcoded into their sidebar.php Here is what I would do: First define your sidebars in your functions.php like so: if ( function_exists(‘register_sidebars’) ) register_sidebar(array( ‘name’=>’Left Sidebar’, ‘before_title’ => ‘<h2 class=”label”>’, ‘after_title’ => ‘</h2>’, ‘description’ => ‘Items placed here will be shown in the … Read more