Website Building » Squarespace » How Do I Add an Announcement Banner to Squarespace?

How Do I Add an Announcement Banner to Squarespace?

Last updated on October 1, 2022 @ 8:32 am

Adding an announcement banner to your Squarespace website is a great way to grab attention and communicate important information to your visitors. There are a few different ways to add an announcement banner, and the method you choose will depend on what type of banner you want and how much control you need over the banner’s appearance.

If you want a simple banner that just displays a piece of text, the best option is to use the Announcement Bar feature in Squarespace 7.1. This feature allows you to add a short message that appears at the top of your website, and you can choose whether to have it dismissable or not.

To add an announcement bar, go to Settings > Announcement Bar in the left sidebar of your Squarespace editor. From here, you can enter your text, choose your colors, and decide whether or not you want the banner to be dismissable.

If you need more control over the appearance of your banner or want to add an image, you can use HTML and CSS to create a custom banner. This method requires a bit more code, but it gives you complete control over how your banner looks. To create a custom HTML banner, go to Settings > Advanced > Code Injection and enter the following code into the Header field:


<div class="announcement-banner">
  <div class="announcement-banner-inner">
    <div class="announcement-banner-content">
      <h2>This is my custom announcement!</h2>
      <p>You can use this area to add any text or HTML that you want.</p>
    </div>
  </div>
</div>
<!-- End Banner -->

Be sure to replace the text in h2 and p tags with your own content. You can also style this banner using CSS. For example, if you want to change the background color of the banner, you would add this CSS to the Custom CSS field in Settings > Advanced > Custom CSS:

.announcement-banner { background-color: #FFF;}

There are a few different ways that you can add an announcement banner to your Squarespace website. The best option will depend on what type of banner you want and how much control you need over its appearance.

If you just need a simple text-based banner, you can use the Announcement Bar feature in Squarespace 7. For more complex banners with images or custom styling, you can use HTML and CSS code injection.

PRO TIP: This article may contain outdated information. Please proceed with caution.
Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.