PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteTo make selected WordPress images display in neutral grayscale, assign each Image block a CSS class and apply filter: grayscale(100%); to the image. WordPress’s built-in image filter is duotone, which creates a two-color treatment rather than a dedicated neutral grayscale effect.
Choose the right grayscale method
| Method | What it does | Scope | Best for |
|---|---|---|---|
CSS class with filter: grayscale(100%) |
Displays the image in true grayscale without changing the uploaded file | Selected blocks that have the class | Neutral black-and-white display or a selective effect |
| WordPress duotone control | Applies a two-color treatment | Supported blocks; can also be set as a Global Styles default | A stylized or branded look |
| Convert a copy in an image editor | Permanently changes the converted file to grayscale | The converted file wherever it is used | An asset that must be grayscale outside the page, such as in a download or print |
Make a selected image grayscale with CSS
- Select the image. Edit the post or page and select its Image block.
- Add a class. Open the block’s Advanced settings and enter
grayscale-imagein the CSS class field. - Add the CSS rule. Put this rule in the custom CSS area available for your site:
.grayscale-image img { filter: grayscale(100%); } - Save and check the front end. View the page outside the editor to confirm the image displays in grayscale.
The exact location of custom CSS depends on the theme and site setup. The selector above is practical CSS guidance, not a WordPress-specific guarantee for every theme. If the image stays in color, inspect its rendered markup and theme styles; the class may need to target the image itself or a different wrapper.
What WordPress’s built-in filter does
WordPress documents a duotone control for the Image block and filter controls for Image, Cover, and Gallery blocks. Duotone maps shadows and highlights to chosen colors. Choosing black and white can look grayscale-like, but it remains a two-color treatment rather than a neutral grayscale conversion. WordPress says of its image filter effects: “You can create a filter effect on images without actually changing the original image.” WordPress Image block documentation explains the block controls, while the Filters Settings overview describes Global Styles and supported blocks.
Apply a duotone effect to an image
Select the image and use the block toolbar’s duotone control or the Styles panel if it is available in your editor. The available controls can vary with the theme and site configuration. For background on the color treatment, see WordPress’s Colors Settings overview.
Free tools Windows power users keep installed
One-click scans. No signup required.
Set a filter through Global Styles
Global Styles can set a filter default for existing and new images. This is broader than adding a CSS class to selected blocks, so use a class when only specific images should appear grayscale. The Filters Settings overview covers the Global Styles behavior.
Make the grayscale effect appear on hover
A hover-only grayscale treatment is possible with CSS, but it is not a built-in WordPress editor option. For a class applied to the Image block, a basic pattern is:
Rank #2
.grayscale-image img {
filter: grayscale(100%);
}
.grayscale-image a:hover img {
filter: grayscale(0%);
}
This example starts grayscale and restores color when a linked image is hovered. Adjust the initial and hover states to suit the effect you want. Check keyboard focus and touch behavior separately: hover is not equally available on every device, and this example does not define a focus treatment.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Keep the original color image or replace it?
The CSS method changes how the image is displayed, not the uploaded original. Duotone likewise creates an appearance effect without changing the source image. If you need a permanently grayscale file for reuse outside WordPress, convert a copy in an image editor and upload or substitute that copy; keep the color original if you may need to reverse the change.
Rank #3
For details about Image block support and its reference selectors, consult the WordPress Developer Resources Image block reference. WordPress introduced image editing capabilities in the block editor in WordPress 5.5; that history is covered in Make WordPress Core’s 2020 overview, but it is not a complete guide to the current interface.
Quick Recap
Best Value
Rank #4
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




