• 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 / twentysixteen_get_color_schemes() – Registers color schemes for Twenty Sixteen.

You appear to be a bot. Output may be restricted

Description

Registers color schemes for Twenty Sixteen.

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

  1. Main Background Color.
  2. Page Background Color.
  3. Link Color.
  4. Main Text Color.
  5. Secondary Text Color.
  6. Usage

    $array = twentysixteen_get_color_schemes();

    Parameters

    Returns

    array An associative array of color scheme options.

    Source

    File name: twentysixteen/inc/customizer.php


    Lines:

    1 to 79 of 79
    function twentysixteen_get_color_schemes() {
      
    /**
     * Filters the color schemes registered for use with Twenty Sixteen.
     *
     * The default schemes include 'default', 'dark', 'gray', 'red', and 'yellow'.
     *
     * @since Twenty Sixteen 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, page
     *                              background, link, main text, secondary text.
     *     }
     * }
     */
      return apply_filters(
        'twentysixteen_color_schemes',
        array(
          'default' => array(
            'label'  => __( 'Default', 'twentysixteen' ),
            'colors' => array(
              '#1a1a1a',
              '#ffffff',
              '#007acc',
              '#1a1a1a',
              '#686868',
            ),
          ),
          'dark'    => array(
            'label'  => __( 'Dark', 'twentysixteen' ),
            'colors' => array(
              '#262626',
              '#1a1a1a',
              '#9adffd',
              '#e5e5e5',
              '#c1c1c1',
            ),
          ),
          'gray'    => array(
            'label'  => __( 'Gray', 'twentysixteen' ),
            'colors' => array(
              '#616a73',
              '#4d545c',
              '#c7c7c7',
              '#f2f2f2',
              '#f2f2f2',
            ),
          ),
          'red'     => array(
            'label'  => __( 'Red', 'twentysixteen' ),
            'colors' => array(
              '#ffffff',
              '#ff675f',
              '#640c1f',
              '#402b30',
              '#402b30',
            ),
          ),
          'yellow'  => array(
            'label'  => __( 'Yellow', 'twentysixteen' ),
            'colors' => array(
              '#3b3721',
              '#ffef8e',
              '#774e24',
              '#3b3721',
              '#5b4d3e',
            ),
          ),
        )
      );
    }
     

     View on Trac

Published: 25th November 2019 | Last updated: 21st August 2020

Primary Sidebar

Information

Function name: twentysixteen_get_color_schemes
Plugin ref: Twenty Sixteen
Version: 2.8
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 6.1.1. PHP: 8.0.28
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-2023. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites