mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-05 07:01:42 +01:00
By adding a filter, child themes can add additional selectors onto the custom color scheme CSS. Like so: {{{ // Add child theme selectors for color schemes. function dynamic_seventeen_custom_colors_css( $css, $hue, $saturation ) { $css .= ' .colors-custom .content-menu > article:not(.has-post-thumbnail), .colors-custom .content-menu > section:not(.has-post-thumbnail) { border-top-color: hsl( ' . $hue . ', ' . $saturation . ', 87% ); /* base: #ddd; */ }'; return $css; } add_filter( 'twentyseventeen_custom_colors_css', 'dynamic_seventeen_custom_colors_css', 10, 3 ); }}} Props celloexpressions. Fixes #38949. Built from https://develop.svn.wordpress.org/trunk@39386 git-svn-id: http://core.svn.wordpress.org/trunk@39326 1a063a9b-81f0-0310-95a4-ce76da25c4cd |
||
---|---|---|
.. | ||
back-compat.php | ||
color-patterns.php | ||
custom-header.php | ||
customizer.php | ||
icon-functions.php | ||
template-functions.php | ||
template-tags.php |