How to use SVG images
To use an SVG image in TeleportHQ, upload the .svg file in the Assets Manager's Uploads tab, then drag it onto your page or right-click it and choose Add Image Block. It's added as an image that stays sharp at any size. An uploaded SVG can't be recolored in the editor; for icons you want to recolor, use the Icons tab instead.
Before you start
- An SVG (Scalable Vector Graphics) file is an image made of shapes instead of pixels, so it looks crisp on any screen. Logos and illustrations are often SVGs.
- The file must be a real SVG. TeleportHQ checks its content when you upload it.
Add an SVG file
- In the left sidebar, click Assets Manager.
- At the top of the panel, click the Uploads tab.
- On the Public folder's row, click + (tooltip Upload assets or create folders).
Click Upload Assets.
- Pick your SVG file, for example
bakery-logo.svg. It appears in the Public folder. Drag the file from the folder onto the canvas. Or right-click it and choose Add Image Block. It appears as an image, inside the selected element, or at the end of the page if nothing is selected.
To size it, select the image and set Width and Height in the right panel's Size section. See How to set an element's width and height.
Paste SVG code
If you copied SVG code (text that starts with <svg), select where it should go on the canvas and paste it with Ctrl+V (Cmd+V on Mac). TeleportHQ adds it as an image with the SVG built in. It isn't saved as a file in the Assets Manager.
Check that it worked
The SVG shows on the canvas as an image. Zoom in: the edges stay sharp.
Troubleshooting
"Upload failed. The extension of your file does not match its content. Please check your file." The file ends in .svg but isn't valid SVG. Export it again from your design tool as SVG.
I can't change the color of my SVG SVGs in TeleportHQ are added as images, and the editor can't change the colors inside an image. Change the color in your design tool and upload the file again. If you need a recolorable icon, pick a similar one from the Icons tab. See How to add and color icons.
There's no Edit image button on my SVG Edit image (the image editor's Crop, Adjust, Text, Background, AI and Export tabs) works on PNG, JPEG and WebP pictures only, so an SVG has no Edit image button and no Edit Image… in its right-click menu. Edit the SVG in your design tool instead.
Good to know
- There's no way to turn an uploaded SVG into an editable icon.
- SVG files are never resized or compressed by image optimization. See How image optimization works (and how to turn it off).
- Remember to add alt text to the image, so screen readers and search engines know what it shows. See How to add and replace images.