by Sarah Gardener

How to Add an SVG Logo to Your Squarespace Website

SVG files look sharp at all screen resolutions, have super small file sizes, and can be edited and modified using code. These files are commonly used for website logos to keep the image crisp no matter what device or browser a person is viewing your website on.

What an SVG is & Why You Should be Using it

Scalable Vector Graphics (SVG) are web-friendly vector images. Files in this format use an XML-based text format to describe how the image should appear. Because text is used to describe the graphic, a SVG file can be scaled to different sizes without losing quality, unlike a PNG or JPG file.

PNG file (left) vs. SVG file (right)

With PNG or JPG files you are restricted to pixels. You would use a PNG file when you require transparency in your images. Transparency in an image requires a large file size. The larger the file size, the slower the graphic is to load. When working with JPG files, you have the choice of quality or compression. More compression gives you a smaller file size, but you lose image quality. SVGs files are just code, which means they can have a smaller file size and a quicker load time.

Currently Squarespace only offers the option to add a .png or .jpg logo file. But there is a workaround! Squarespace doesn’t make it easy, but it is possible. Here’s how you can add an SVG logo to the Logo/Title section of your Squarespace site.

How to Add an SVG Logo to Logo/Title Section of Your Squarespace Website

  • Add a Transparent Logo

Hover over the page title you want to add the SVG to and click edit. Add a transparent logo that is the same size as your .png or .jpg logo file.

  • Create an Unlisted Page

In the Home Menu, click Pages, then click the + icon to add a new page.

Enter a page title in the box. We suggest naming this page SVG or something equally descriptive so you don’t confuse this page with any other pages you have already created.

In the Pages panel, hover over the page title, then click the gear icon next to the title. Uncheck Enabled, click Confirm, and then click Save. This ensures your page will not appear on your live site and will not be indexed by search engines.

Begin editing the unlisted SVG page using the blank starter layout.

  • Upload SVG to Unlisted Page

Select “edit” to start adding text to this page. We recommend using text that will help you identify the logo you are uploading (like SVG logo or SVG link).

Highlight the text and select the “add a link” option. From the pop-up window, select the “Files” option and upload the .svg.

Once the file has uploaded, select “Open in a New Window” and save this section. You can get the URL to the SVG by clicking on the link (this will open in a new tab).

Copy the URL.

  • Adding Custom CSS

Back to the Home Menu, select Design and then Custom CSS.

Insert the following code:

.logo-image {
background-repeat: no-repeat;
background-image: url( PASTE IMAGE URL HERE );
}

The class or ID you are using as a selector will vary based on the template you are using. For this example we used the Ready template. You can find the name of your logo’s class or ID by right-clicking on the logo in your template and selecting Inspect Element.

Now your SVG logo will appear in the header of your website! You can rest easy knowing that your logo will look great on any device.

Leave a Comment

Your email address will not be published.