Skip to content

Commit

Permalink
Content updates
Browse files Browse the repository at this point in the history
  • Loading branch information
iobrado committed Feb 29, 2024
1 parent 250bb36 commit 0cf440d
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions website/blog/2024-02-29-tips-useful-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>
*/
public const COLOR_SCHEMES = [
'development' => 'fresh',
'local' => 'fresh',
'staging' => 'blue',
'production' => 'coffee',
];
```

## EscapedView class

Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit 0cf440d

Please sign in to comment.