Custom SVG IconsNew
Use your own SVG as a social icon or link icon, for a platform that is not in the icon list or for your own logo. WP LinkCanvas lets you upload SVG files to the Media Library, cleans each one, and draws it in the page so it can take the theme’s colour.

Adding a custom SVG icon#
- Click the icon button on a social icon or link row.
- Scroll to Custom icon (SVG or image) at the bottom of the picker.
- Click the folder button and upload or choose an SVG from the Media Library. Or paste the URL of an SVG from your Media Library and click Apply.
- Click Update.

Use the theme colour#
When you choose an SVG, Use the theme colour is turned on. The icon is then drawn in the same colour as the other icons, and changes with the theme and on hover.
Turn it off to keep the colours in the file, for example for a logo with several colours. With the option on, every coloured part of the SVG takes the one icon colour, so a multi-colour logo becomes a single-colour shape.
The option shows only for SVG files. PNG, JPG and other images always keep their own colours.
Who can upload SVGs#
WordPress blocks SVG uploads by default, because an SVG file can contain code. With WP LinkCanvas active, users who can upload files can add SVGs, and every SVG is cleaned as it is uploaded:
- Scripts, event handlers and embedded web content are removed.
- Links to anything outside the file are removed.
- Colours set with
<style>rules in the file are kept by moving them onto the shapes. - A file that is not a valid SVG, or is larger than 256 KB, is refused with a message.
The cleaned SVG is also checked again each time it is shown on a bio page.
To keep WordPress’s default of no SVG uploads, add this to a small plugin or your child theme’s functions.php:
add_filter( 'nlb_allow_svg_upload', '__return_false' );
Custom SVG icons you already chose keep showing; only new uploads are blocked.
Tips for good icons#
- Use a square SVG (for example a 24 × 24 viewBox) with no background shape.
- Keep it simple: icons are shown at about 22 pixels.
- For a one-colour icon, export it in black or any single colour and leave Use the theme colour on.
SVGs from other sites#
An SVG URL from another website is shown as a normal image. It cannot take the theme’s colour, because only files in your own Media Library are drawn inside the page. Upload the file to your Media Library to use the option.