Переглянути джерело

Maywood: enable theme default

For every font-family defined, Maywood provides a fallback to the
CSS variable (--font-base or --font-headings). It doesn't make use
of the --font-base-default and --font-headings-default variables,
so we can get rid of them. We, instead, need an alternative way
to declare this theme supports the "Theme Default" option,
hence the enable-theme-default.
Andrés 5 роки тому
батько
коміт
754e8ff5bf
1 змінених файлів з 1 додано та 2 видалено
  1. 1 2
      maywood/functions.php

+ 1 - 2
maywood/functions.php

@@ -106,8 +106,7 @@ if ( ! function_exists( 'maywood_setup' ) ) :
 		add_theme_support(
 			'a8c-global-styles',
 			[
-				'font_base'      => '"IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',
-				'font_headings'  => '"IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',
+				'enable_theme_default' => true,
 			]
 		);
 	}