Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dark mode theme supports #4032

Merged
merged 1 commit into from
Aug 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions rivington/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ function rivington_setup() {
// Add child theme editor styles, compiled from `style-child-theme-editor.scss`.
add_editor_style( 'style-editor.css' );

// Dark backgrounds
// - See: https://developer.wordpress.org/block-editor/developers/themes/theme-support/#dark-backgrounds
add_theme_support( 'editor-styles' );
add_theme_support( 'dark-editor-style' );

// Add child theme editor font sizes to match Sass-map variables in `_config-child-theme-deep.scss`.
add_theme_support(
Expand Down Expand Up @@ -148,7 +145,7 @@ function rivington_fonts_url() {

/**
* A filter to enable child themes to add/change/omit font families.
*
*
* @param array $font_families An array of font families to be imploded for the Google Font API
*/
$font_families = apply_filters( 'included_google_font_families', $font_families );
Expand Down
5 changes: 1 addition & 4 deletions sophisticated-business/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
* as indicating support for post thumbnails.
*/
function sophisticated_business_setup() {
// Switches Gutenberg controls to work against a dark background.
add_theme_support( 'dark-editor-style' );

/**
* Add support for core custom logo.
*
Expand Down Expand Up @@ -89,7 +86,7 @@ function sophisticated_business_fonts_url() {

/**
* A filter to enable child themes to add/change/omit font families.
*
*
* @param array $font_families An array of font families to be imploded for the Google Font API
*/
$font_families = apply_filters( 'included_google_font_families', $font_families );
Expand Down