Snippets repository for WordPress developpers

Browse
// into functions.php
add_theme_support( 'editor-color-palette', array(
  array(
    'name'  => __( 'Color prime', 'snippress' ),
    'slug'  => 'color-prime',
    'color' => '#535353',
  ),
  array(
    'name'  => __( 'Color second', 'snippress' ),
    'slug'  => 'color-second',
    'color'	=> '#2a3f89',
  ),
  array(			
    'name'  => __( 'Color accent', 'snippress' ),
    'slug'  => 'color-accent',
    'color' => '#EF1851',
  ),
) );
}

Warning: Trying to access array offset on null in /home/clients/7f7a8d8eb6e40c50d3548b06c548734d/web/wp-includes/class-wp-query.php on line 3766

Categories

Tags