Jump to content

Image elements do not have explicit width and height

Recommended Posts

Hi everyone! 

I have a question about the Core Web Vital and CLS issue with images not having width and height definitions for images.

Has anyone had this same issue,  if so have you found a solution to fix it or is this one of the issues Squarespace is currently ironing out with their Core Web Vitals adjustments? I know we are running on a CMS system but can't seem to find any code that helps define the width and height especially for the logo section of the header.


This is the Squarespace response to my question:

As for adding explicit widths and heights to images- I would be happy to pass this feedback along to our development team, so they can take it into account as they work on improvements and updates.
In the meantime, if you want more control over your page elements' attributes, you may want to look into using custom code to edit your site. Since that’s an advanced modification, we can’t provide direct support for it, but I can recommend checking out our forum below for more coding help:
There, Squarespace users help each other with more complex, code-related solutions. If you can’t find an existing post with steps for this, I’d recommend creating an account and posting your question.

Link to comment
  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.