Every content block in Squarespace 7.1 has a unique block ID in the format .sqs-block followed by a data-block-id attribute. Use either selector to hide specific blocks.
This is useful for hiding elements on desktop but not mobile (or vice versa), or hiding blocks you can't delete because they're part of a template structure.
/* Hide by block data attribute */
[data-block-id="YOUR_BLOCK_ID"] {
display: none !important;
}
/* Hide on desktop only */
@media screen and (min-width: 768px) {
[data-block-id="YOUR_BLOCK_ID"] {
display: none !important;
}
}
/* Hide on mobile only */
@media screen and (max-width: 767px) {
[data-block-id="YOUR_BLOCK_ID"] {
display: none !important;
}
}Find block IDs with our ID Finder toolTry it free →
