Ghost has a new look! with the email you used before and your past orders move over automatically.
Ghost Plugins
Legacy Plugin

Your Own Search Block Icon

RandomCSS7.1Free
Your Own Search Block Icon preview

The original library, featuring hundreds of copy-and-paste plugins for Squarespace. These legacy plugins are preserved as they were originally released and are available as-is. For no-code plugins with visual editing and live previews, explore the current plugin library.

Overview

Swap out the default search block icon with your own. This plugin uses css editor and works with all template families.

Plugin Delivery

Free Plugin

This is a free plugin from the original Ghost Plugins library. Copy the code below and paste it into your Squarespace site. No purchase or account needed.

Squarespace Compatibility & Requirements

Compatibility notes preserved from the original release.

7.1Supported
Custom CSSRequired

Install

Legacy plugins install by hand, there is no Plugin Studio build for this one.

  1. 1Copy the code from the Code Documentation section below.
  2. 2In Squarespace, open Website, Pages, Website Tools, Custom CSS for CSS, or Settings, Advanced, Code Injection for HTML and JavaScript.
  3. 3Paste the code, save, then refresh your site to see the plugin running.

Code Documentation

Add a search block to any page. Set the color theme to dark.

Once the search block has been added and saved, go to the Custom CSS Editor. Copy and paste the code below into the Custom CSS Editor box.

CSS
// Search Block Icon //

.sqs-search-ui-button-wrapper.color-dark .search-input {
 background-image: url(IMAGE-URL-HERE);
 background-size: 35px 35px;
 background-position: center left;

// Search Block - Text //

.sqs-search-ui-button-wrapper.color-dark .search-input {
 font-size: 24px;
 font-weight: 300;
 letter-spacing: 0.02em;
 color: #000000 !important;
 opacity: 1 !important;
}

Classes and Styling

Selectors and variables this plugin uses, target them in Custom CSS to restyle it.

.sqs-search-ui-button-wrapper.search-input

FAQ

Answers to common questions about setup, customization, and troubleshooting.

Is this plugin free?

Yes. Legacy plugins are free to use on any site, no account or purchase needed.

Will it work on my Squarespace version?

Legacy plugins were built for the version noted in Squarespace Compatibility & Requirements and are provided as-is. Newer platform changes may require small tweaks.

Can I customize it?

Yes. Edit the values in Script Settings or override the selectors listed under Classes and Styling in your Custom CSS.

Do you support legacy plugins?

Legacy plugins are no longer updated. For maintained plugins with Plugin Studio and ongoing support, browse the current plugin library.

Changelog

A history of updates released for this plugin.

Original release

Archived exactly as it shipped in the original plugin library. No further updates are planned for legacy plugins.

Customizable Options

Search Block Icon: Replace IMAGE-URL-HERE with the url of the icon you’d like to use and adjust the background size to make your icon bigger or smaller.

Search Block Text: This is the text within the search block. Feel free to adjust the font size, font weight, letter-spacing, and color to your liking.

The code works for the search block set to the dark theme, which is ideal for lighter themed websites. If you want to use the light themed search block, you will need to replace all “dark” text in the code with “light”.