diff --git a/website/blog/2024-02-29-tips-useful-features.md b/website/blog/2024-02-29-tips-useful-features.md index 4a65b11ac..975f0eab9 100644 --- a/website/blog/2024-02-29-tips-useful-features.md +++ b/website/blog/2024-02-29-tips-useful-features.md @@ -43,7 +43,21 @@ The supported values are: ![Different color schemes in WP Admin depending on the environment](/img/blog/modify-admin-appearance.webp) -If you want to change any of the colors, you can do so by modifying the values in `COLOR_SCHEMES` array inside `ModifyAdminAppearance` class. +If you want to change any of the colors, you can do so by modifying the values in `COLOR_SCHEMES` array inside `ModifyAdminAppearance` class. For the full list of available color schemes, you can navigate to **_wp-admin/css/colors_**. The subfolders here represent the color schemes you can use. For example, if you want to change production environment color scheme to `coffee`, you would do it like this: + +```php +/** + * List of admin color schemes. + * + * @var array + */ +public const COLOR_SCHEMES = [ + 'development' => 'fresh', + 'local' => 'fresh', + 'staging' => 'blue', + 'production' => 'coffee', +]; +``` ## EscapedView class @@ -210,7 +224,9 @@ Finally, add the following filter to the `register` method: ## Yoast SEO helper -The content generated by Eightshift blocks may be difficult for Yoast SEO to interpret, but there is a Yoast SEO helper included in our DevKit that fixes the issue and makes the content readable to Yoast SEO. To enable this, you have to add the following in **_src/Blocks/assets/scripts/application-blocks-editor.js_**: +The content generated by Eightshift blocks may be difficult for Yoast SEO to interpret, but there is a Yoast SEO helper included in our DevKit that fixes the issue and makes the content readable to Yoast SEO. By default, Yoast SEO can't read the content from custom dynamic blocks, so this helper tells it how to parse the content from the blocks. + +To enable this, you have to add the following in **_src/Blocks/assets/scripts/application-blocks-editor.js_**: ```jsx import { yoastSeo } from '@eightshift/frontend-libs/scripts/plugins';