• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / twentyfifteen_get_color_schemes() – Register color schemes for Twenty Fifteen.

You appear to be a bot. Output may be restricted

Description

Register color schemes for Twenty Fifteen.

Can be filtered with twentyfifteen_color_schemes . The order of colors in a colors array:

  1. Main Background Color.
  2. Sidebar Background Color.
  3. Box Background Color.
  4. Main Text and Link Color.
  5. Sidebar Text and Link Color.
  6. Meta Box Background Color.
  7. Usage

    $array = twentyfifteen_get_color_schemes();

    Parameters

    Returns

    array An associative array of color scheme options.

    Source

    File name: twentyfifteen/inc/customizer.php


    Lines:

    1 to 96 of 96
    function twentyfifteen_get_color_schemes() {
      
    /**
     * Filters the color schemes registered for use with Twenty Fifteen.
     *
     * The default schemes include 'default', 'dark', 'yellow', 'pink', 'purple', and 'blue'.
     *
     * @since Twenty Fifteen 1.0
     *
     * @param array $schemes {
     *     Associative array of color schemes data.
     *
     *     @type array $slug {
     *         Associative array of information for setting up the color scheme.
     *
     *         @type string $label  Color scheme label.
     *         @type array  $colors HEX codes for default colors prepended with a hash symbol ('#').
     *                              Colors are defined in the following order: Main background, sidebar
     *                              background, box background, main text and link, sidebar text and link,
     *                              meta box background.
     *     }
     * }
     */
      return apply_filters(
        'twentyfifteen_color_schemes',
        array(
          'default' => array(
            'label'  => __( 'Default', 'twentyfifteen' ),
            'colors' => array(
              '#f1f1f1',
              '#ffffff',
              '#ffffff',
              '#333333',
              '#333333',
              '#f7f7f7',
            ),
          ),
          'dark'    => array(
            'label'  => __( 'Dark', 'twentyfifteen' ),
            'colors' => array(
              '#111111',
              '#202020',
              '#202020',
              '#bebebe',
              '#bebebe',
              '#1b1b1b',
            ),
          ),
          'yellow'  => array(
            'label'  => __( 'Yellow', 'twentyfifteen' ),
            'colors' => array(
              '#f4ca16',
              '#ffdf00',
              '#ffffff',
              '#111111',
              '#111111',
              '#f1f1f1',
            ),
          ),
          'pink'    => array(
            'label'  => __( 'Pink', 'twentyfifteen' ),
            'colors' => array(
              '#ffe5d1',
              '#e53b51',
              '#ffffff',
              '#352712',
              '#ffffff',
              '#f1f1f1',
            ),
          ),
          'purple'  => array(
            'label'  => __( 'Purple', 'twentyfifteen' ),
            'colors' => array(
              '#674970',
              '#2e2256',
              '#ffffff',
              '#2e2256',
              '#ffffff',
              '#f1f1f1',
            ),
          ),
          'blue'    => array(
            'label'  => __( 'Blue', 'twentyfifteen' ),
            'colors' => array(
              '#e9f2f9',
              '#55c3dc',
              '#ffffff',
              '#22313f',
              '#ffffff',
              '#f1f1f1',
            ),
          ),
        )
      );
    }
     

     View on Trac

Published: 19th December 2019 | Last updated: 21st August 2020

Primary Sidebar

Information

Function name: twentyfifteen_get_color_schemes
Plugin ref: Twenty Fifteen
Version: 2.9
Sourcefile: inc/customizer.php
File ref: inc/customizer.php
Deprecated?: No
API Letters: C,G,S,T

Footer

WordPress a2z
WordPress a2z
WordPress Dynamic API Reference
WordPress 5.7. PHP: 7.3.27
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wp-a2z.org
© Copyright WordPress a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites