How to change the colour
PNG: download it again in the colour you want. SVG code: add style="color:#yourcolour" to the <svg> tag. The icon follows that colour because it uses “currentColor”.
a 3-minute guide
Easiest: add an Image block and upload a PNG. Sharpest: add a Custom HTML block and paste the SVG code.
PNG or SVG code · 128 px PNG
WordPress blocks SVG file uploads by default for safety, so upload a PNG, or paste the SVG as code in a Custom HTML block. Pasted SVG stays sharp and takes any colour.
Open the icon library and search for what you need, for example “shield check”. Click the icon, choose a colour, then click Download PNG and pick 128 px. Want it razor sharp? Click Copy SVG instead and use step 4.
In the block editor, click the + (Block Inserter), choose Image, then Upload and pick the PNG.
In the block settings on the right, set the width (for example 64 px). Use the alignment buttons to centre it.
Add a Custom HTML block and paste the SVG you copied. Change width and height in the code to resize it, and add style="color:#2F5BFF" to colour it.
Click Preview to check it, then Update or Publish.
PNG: download it again in the colour you want. SVG code: add style="color:#yourcolour" to the <svg> tag. The icon follows that colour because it uses “currentColor”.
Image block: set the width in the block settings. SVG code: change the width and height numbers (keep them the same).
That’s WordPress blocking SVG uploads. Upload the PNG, or paste the SVG into a Custom HTML block.
Your user role may not allow it. Ask the site admin, or use the PNG option.
Set width="32" height="32" (or any size) on the svg tag.
a shortcut
Click Claude, ChatGPT, Gemini, Perplexity or Grok. We copy a ready brief (“help me add an icon to my WordPress project”) that points it to our skill file and this guide, and open it for you. Tell it what the icon is for: it finds the right one, then walks you through adding, recolouring and sizing it.
500 icons, twenty styles, all free.
Browse icons