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

Text Block Menu

RandomTextSquarespace 7.1
Text Block Menu 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

A great alternative to the Squarespace menu block. 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

CSS
/* = = TEXT BLOCK MENU = = */

// , , VARIABLES , , //
@currencyBefore: '$';
@currencyAfter: '';
@alternate-background_color: #999;
@alternate-background_opacity: 15;

// , , CODE , , //
.sqs-layout {

 // Menu Styles //
 &:not(.sqs-editing) {
 .html-block.sqs-block {
 .sqs-block-content,
 .sqs-html-content {

 // Reset List Styles //
 ol {
 padding: 0;
 margin: 0;
 list-style: none;
 }

 // Ordered List Container //
 > ol {
 @media only screen and (max-width: 640px) {
 margin: 0 -20px;
 }

 // Menu Item //
 > li {
 font-weight: bold;
 text-transform: uppercase;
 padding: 17px 4em 17px 17px;
 -webkit-box-sizing: border-box;
 box-sizing: border-box;
 position: relative;

 @media only screen and (max-width: 640px) {
 padding-left: 20px;
 }

 // Alternate Background //
 &:nth-child(even) {
 background: fade(@alternate-background_color, @alternate-background_opacity);
 }

 // Paragraph items are now contained within list items //
 p {
 margin: 0;

 &:before {
 display: none;
 }
 }

 // Details Container //
 > ol {
 font-weight: normal;
 text-transform: none;

 > li {

 // Price //
 &:nth-child(1) {
 position: absolute;
 top: 17px;
 right: 17px;
 white-space: nowrap;

 p:before {
 content: @currencyBefore;
 display: inline;
 }

 p:after {
 content: @currencyAfter;
 display: inline;
 }
 }

 // Description //
 &:nth-child(2) {}

 // Options //
 &:nth-child(n + 3) {
 font-style: italic;
 font-size: .8em;
 line-height: 1.5;
 }
 }
 }
 }
 }
 }
 }
 }

 // Editor Styles //
 &.sqs-editing {
 .sqs-block-content,
 .sqs-html-content {
 > ol {
 -webkit-padding-start: 0;
 padding-inline-start: 0;

 > li {
 &:not(:last-child) {
 margin-bottom: 34px;
 }

 p {
 font-weight: bold;

 &:before {
 display: none;
 margin: 0;
 }
 }

 > ol {
 list-style: none;
 padding: 0;
 margin: 0;

 > li {
 margin-bottom: 0;

 p {
 font-weight: normal;

 &:before {
 display: inline;
 font-size: 12px;
 font-weight: bold;
 letter-spacing: .1em;
 line-height: 1;
 opacity: .6;
 }
 }

 &:nth-child(1) {
 p:before {
 content: 'PRICE: ';
 }
 }

 &:nth-child(2) {
 p:before {
 content: 'DESCRIPTION: ';
 }
 }

 &:nth-child(n + 3) {
 p:before {
 content: 'OPTION: ';
 }
 }
 }
 }
 }
 }
 }
 }
}

/*
 Developed by ANIagency LLC
 Free for personal and commercial projects, but can’t be sold.
 v1.03
*/

/* = = TEXT BLOCK MENU END = = */

Classes and Styling

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

.sqs-layout.sqs-editing.html-block.sqs-block-content.sqs-html-content

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

From your Squarespace account, go to the Custom CSS Editor. Copy and paste the code below into the Custom CSS Editor box.

Next, edit the page you’d like to add the menu to and insert a Text Block.

Inside the text block, create a Menu Item (e.g. Large Veggie Pizza), then click the numbered list icon to create a menu.

Press the return key followed by the tab key to start adding details (Price, Description, Options).

Enter the information, then press the return key again to reveal the next detail. Repeat this step for each detail.

Please note that each detail must contain at least one character in order for the next one to appear, otherwise a new Menu Item will be created. You may add an unlimited number of Menu Item options.

Finally, add a new Menu Item by pressing return x2, then repeat steps above.

When finished, hit save and refresh the page.

Currency Localization

Towards the top of the CSS, there are two variables titled @currencyBefore and @currencyAfter. Use these to change the currency symbol and position. Make sure to type your symbol between the quotation “ “marks. This only affects the Menu Item price field.

Alternate Menu Item Background

Towards the top of the CSS, use the @alternate-background_color and @alternate-background_opacity variables to adjust the alternate background.

Multi-line Descriptions

Press shift + return to create a line break within the description detail.

This plugin comes with an Unlimited Use License. View License Terms