Jump to content

Image Block - Output src only

Recommended Posts

Site URL: https://trailyardvalpo.com

Hi,

We created a custom template for our client to use on their Squarespace site. One issue we've ran into is how images are handled from the Admin & site editor. Right now, all of the images displayed on the site are uploaded to squarespace via the git repo, inside of the `assets` folder.

When we tried to utilize the "Image Block" block-field to enable users to upload their own images within the site editor, we found that this also creates additional markup (A significant amount of markup) to the page. This ultimately breaks the layout we've created with our custom theme.

Long story short, we're looking for a way to utilize the "Image Block" block-field, but to only output the image source in the "page.region" for the specified page. If we just get the source from Squarespace, we can use our own markup on the site.

Link to comment

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.