Evergreen Pricing Table
Plan cards with a monthly/yearly switch, a "Most popular" badge and a feature checklist, for any website. One small script, no dependencies.
Keep your plans in a Google Sheet (or paste the rows into the page). Change a price in the sheet and every pricing table on your site updates.
What's in the download
| File or folder | What it's for |
|---|---|
INSTALL.md | Step-by-step setup for Squarespace (every plan), WordPress, Wix, Webflow, Shopify, Ghost, Carrd and plain HTML |
templates/pricing-template.csv | Spreadsheet template. Open it in Google Sheets or Excel. |
embed/ | Ready-to-paste snippets. Start here. |
evergreen-pricing-table.zip | The WordPress plugin. Upload it under Plugins → Add New → Upload Plugin. |
dist/pricing-table.min.js | The compact script. Use it if you upload the file to your site. |
dist/pricing-table.js | The readable script, for anyone who wants to look inside |
demo/index.html | Double-click to try it offline |
LICENSE.txt | What your license allows |
The whole idea in two lines
<div data-pricing-table data-src="YOUR-PUBLISHED-GOOGLE-SHEET-CSV-LINK"></div>
<script src="pricing-table.min.js" defer></script>
Every option is another data- attribute on that div. See Options in INSTALL.md.
For developers
EvergreenPricing.init(); // start any new pricing tables on the page
tableDiv.__ept.setPeriod("yearly"); // switch a table to yearly (or "monthly")
Questions or installation help: use the contact page at evergreencode.store.
Installation
Every install has the same two parts:
- Your plans: a Google Sheet (recommended), or rows pasted into the snippet.
- The snippet: one of the files in
embed/, pasted where you want the pricing table.
Step 1: List your plans
Open templates/pricing-template.csv in Google Sheets (File → Import → Upload) or Excel. One row per plan, left to right in the order they should appear:
| Column | What goes in it |
|---|---|
| Plan (required) | The plan name |
| Monthly | Price per month, as a number: 29 or 29.99. Words like Free or Custom are shown as typed. |
| Yearly | Price per year: 290. Leave the whole column out if you only have one price. |
| Description | A short line under the name |
| Features | Separate features with semicolons, or put each on its own line in the cell. Start one with - to show it as not included: 5 projects; Email support; - Phone support |
| Button | Button text, like Start free trial (default: Get started) |
| Link | Where the button goes: your checkout, sign-up or contact page |
| Monthly link / Yearly link | Optional. Different checkout links for each billing period. |
| Badge | Optional label on top of the card, like Most popular. A plan with a badge is highlighted. |
| Highlight | Optional. yes to highlight a plan without a badge, or no to keep a badged plan plain. |
| Note | Optional small print under the price, like per user or + tax |
Column names aren't picky: "Tier", "Price", "Annual", "What's included" and similar names also work. **double asterisks** make text bold in descriptions and features.
When both Monthly and Yearly have prices, a Monthly/Yearly switch appears, with a "Save X%" label worked out from your prices. Yearly prices are shown per month ("$24/month, $290 billed yearly") by default; add data-yearly-shows="year" to show "$290/year" instead.
Use a Google Sheet (recommended)
- Click File → Share → Publish to web.
- Under Link, choose your sheet tab, change "Web page" to Comma-separated values (.csv), and click Publish.
- Copy the link it shows. It contains
/pub?and ends inoutput=csv.
Use this link, not the address in your browser bar. A link ending in /edit won't work, and the table tells you so if you paste one by mistake. Changes in the sheet appear on your site within about 5 minutes.
Or paste the rows
Use embed/2-pasted-data-embed.html and replace the example rows between the two script tags with your own (the first row is the column names). From Excel or Google Sheets, you can select the cells, copy, and paste them straight in.
Step 2: Choose a snippet
File in embed/ | Use it when |
|---|---|
1-google-sheet-embed.html | One paste that does everything: your sheet link plus the script. Easiest. |
2-pasted-data-embed.html | You'd rather type your plans into the snippet than use a sheet. |
3-site-wide-script.html | Your builder has a site-wide footer code box. Paste it there once. |
4-table-only.html | The script is already loaded (by file 3 or the hosted file) and you're adding a table. |
5-hosted-file-embed.html | You can upload files to your site and want the shortest code. |
Most builders only run custom code on the published page. If you see a blank box or code while editing, check the live page or preview.
Squarespace
Works on Squarespace 7.1 and 7.0, in any template, on every plan.
Core, Plus or Advanced plans (legacy Business and Commerce)
Add a Code Block where the pricing table should go and paste embed/1-google-sheet-embed.html (with your sheet link) or embed/2-pasted-data-embed.html (with your rows). In Fluid Engine, drag the Code Block wide: the cards sit side by side on wide blocks and stack on phones.
Basic plan (legacy Personal): no upgrade needed
Basic and Personal plans don't run Code Blocks or Code Injection, but Markdown Blocks accept HTML on every plan.
This is a widely used workaround, but Squarespace doesn't officially support it and could change how Markdown Blocks behave in the future.
- Upload the script file. Edit any text block, highlight a word, click the link icon, then File → Upload file, and upload
dist/pricing-table.min.js. Remove the temporary link afterward. The file is now at/s/pricing-table.min.js. - Load it from your footer. Click Edit, hover over the footer, click Edit Footer, add a Markdown block and paste: ``
html <script src="/s/pricing-table.min.js" defer></script>`` If your site has no footer, put this line in a Markdown block on the pricing page instead. - Add the table. Add a Markdown block where the table should go and paste the line from
embed/4-table-only.htmlwith your Google Sheet link. Keep it on one line.
Use the Google Sheet method with Markdown blocks. Don't paste rows or the whole script into a Markdown block, because Markdown can change symbols in them.
WordPress
- Go to Plugins → Add New → Upload Plugin, choose
evergreen-pricing-table.zip, click Install Now, then Activate. - Add a Shortcode block and use either: ``
[evergreen_pricing src="YOUR-PUBLISHED-CSV-LINK"]`or type your rows between the tags:`[evergreen_pricing] Plan,Monthly,Yearly,Features,Button,Link,Badge Starter,19,190,1 site; Email support,Start,/signup?plan=starter, Pro,49,490,5 sites; Priority support,Start,/signup?plan=pro,Most popular [/evergreen_pricing]
Shortcode options: currency, locale, start, yearly_shows, accent, columns, footnote, class (same as the options below, with _ instead of -).
[evergreen_pricing src="…" currency="CAD" start="yearly" accent="#7b2cbf" footnote="All prices plus tax."]
The script only loads on pages that have a pricing table. If a caching or speed plugin breaks it, exclude pricing-table.min.js from its "delay JavaScript" or "combine JS" settings.
Wix
Add Embed Code → Embed HTML, paste embed/1-google-sheet-embed.html or embed/2-pasted-data-embed.html, and drag the element tall enough for the cards.
Webflow
Paste embed/3-site-wide-script.html into Site settings → Custom code → Footer code once, then add an Embed element with embed/4-table-only.html. Custom code needs a paid site plan.
Shopify
Online Store 2.0 themes: add a Custom Liquid section and paste embed/1-google-sheet-embed.html or embed/2-pasted-data-embed.html.
Ghost
Add an HTML card and paste embed/1-google-sheet-embed.html or embed/2-pasted-data-embed.html.
Carrd
Add an Embed element, set its type to Code, and paste embed/1-google-sheet-embed.html. Embeds need a Carrd Pro plan.
Any website (HTML)
Upload dist/pricing-table.min.js and use embed/5-hosted-file-embed.html.
Options
Add any of these to the <div data-pricing-table …> tag:
| Attribute | What it does | Example |
|---|---|---|
data-src | Your published Google Sheet (CSV) or CSV file link | data-src="https://docs.google.com/…output=csv" |
data-currency | Currency code for number prices (default USD) | data-currency="GBP" |
data-locale | Number style, e.g. de-DE for "19 €" (default: the visitor's) | data-locale="en-CA" |
data-start | Which billing period shows first: monthly (default) or yearly | data-start="yearly" |
data-yearly-shows | month (default, "$24/month, $290 billed yearly") or year ("$290/year") | data-yearly-shows="year" |
data-columns | Cards per row on wide screens (default: number of plans, up to 4) | data-columns="3" |
data-accent | Color for the switch, badge, highlighted card and buttons | data-accent="#1d5c45" |
data-footnote | A line under the cards | data-footnote="Prices in USD. Cancel anytime." |
data-text-monthly / data-text-yearly | Rename the switch labels | data-text-yearly="Annual" |
data-text-save | The savings label; {percent} is the number | data-text-save="2 months free" |
data-text-button | Default button text | data-text-button="Sign up" |
Styling
Add to your site's custom CSS (Squarespace: Design → Custom CSS, available on every plan; WordPress: Appearance → Customize → Additional CSS):
[data-pricing-table] {
--ept-accent: #1d5c45; /* switch, badge, highlighted card, buttons */
--ept-on-accent: #ffffff; /* text on the accent color */
--ept-card: #ffffff; /* card background (default: see-through) */
--ept-radius: 14px; /* card corners */
--ept-gap: 20px; /* space between cards */
}
The table uses your site's font and text color automatically.
Troubleshooting
"The pricing table couldn't load." On your live site this message stays general. Open the page in the Squarespace editor or WordPress preview, or your browser's console, to see the exact reason. Most often it's a Google Sheet link that isn't the Publish to web → CSV link.
A price shows as text, not a number. Type only the number in the price column (29, not $29/mo). The currency symbol and "/month" are added for you.
No Monthly/Yearly switch. The switch appears when both price columns have at least one price.
Changes in my sheet don't show up. Google refreshes published sheets every few minutes. Wait, then reload.
Still stuck? Use the contact page at evergreencode.store. Installation help is included for 6 months.
Changelog
1.0.0 (2026-10-30)
First release.
- Plan cards from a Google Sheet, a CSV file, or rows pasted into the page.
- Monthly/yearly switch with an automatic "Save X%" label; yearly prices shown per month (billed yearly) or per year.
- "Most popular" badge and highlighted card; feature checklist with not-included items; bold text.
- Prices formatted for any currency and language; words like "Free" or "Custom" shown as typed.
- One button per plan, with optional separate monthly and yearly links.
- WordPress plugin:
[evergreen_pricing]shortcode with a sheet link or rows typed between the tags. - Install guides for Squarespace (every plan, including Basic/Personal via Markdown Blocks), WordPress, Wix, Webflow, Shopify, Ghost, Carrd and plain HTML.
- Keyboard and screen-reader support; respects reduced motion; shielded from site-wide styles.