Override Global Palette for Global customizer
-
Is there a way to override default palette colors through child theme? Here a function that sets color on parent theme that I want to override in child theme.
public static function get_default_color_palette() { return array( 'currentPalette' => 'palette_1', 'palettes' => array( 'palette_1' => array( '#FFFFFF', '#3a3a3a', '#3a3a3a', '#4B4F58', '#F5F5F5', '#FFFFFF', '#F2F5F7', '#424242', '#000000', ), 'palette_2' => array( '#0170B9', '#3a3a3a', '#3a3a3a', '#4B4F58', '#F5F5F5', '#FFFFFF', '#F2F5F7', '#424242', '#000000', ), 'palette_3' => array( '#0170B9', '#3a3a3a', '#3a3a3a', '#4B4F58', '#F5F5F5', '#FFFFFF', '#F2F5F7', '#424242', '#000000', ), ), ); }
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Override Global Palette for Global customizer’ is closed to new replies.