Custom styling for Quote Blocks in Squarespace
It's often that I've not liked the theme styling for block quotes in Squarespace, had a client tell me they didn't like the quote styling, or both. Unfortunately, against my best advice, the client always just wants to use the h1 or h2 styles on text to highlight quoted material. Or worse, they just bold the paragraph. Going this route usually makes the source line look extra stupid—and you always need the source line!
This is all unfortunate because using a
<blockquote> element (Squarespace Quote Block) provides significant semantic and structural meaning to the code and content. If you format a line of text has a Heading 2 or make it bold, all of that context is lost. Any machine trying to understand your page content, be a search spider, the AMP engine, an RSS reader, or an accessibility device, is going to misrepresent that content to the detriment of it's meaning and the user.
Quote Block vs
Quick bit of clarification: when say "use a blockquote" on Squarespace (SQS), what I mean is to "insert a Quote Block" using the editor. Behind the scenes, the SQS Quote Block uses an html
<blockquote> element for that content.
Customizing the style of the SQS Quote Block
So, I want to use proper blockquotes and I want my clients to use proper blockquotes, so I had to solve the styling issues.
I poked around on the web (links below) this morning to find the correct CSS elements and classes that generate and style Quote Blocks. Here's the custom CSS I ended up with and just deployed on a client's site:
Feel free to use and modify that CSS. It comes with no warranty or guarantee, though. I can't promise it won't mess up your site.
To use it, paste the code into the Custom CSS editor found in the menu under Design > Custom CSS. More info on using Custom CSS in SQS here.