Edit Theme JavaScript

Edit Theme JavaScript

Start your free trial
Start your free trial

General

Online store speed
Online store speed
Accessibility
Accessibility
Theme updates
Theme updates

Theme styles

Style presets
Style presets
Colors
Colors
Fonts
Fonts
Animation
Animation
Social media
Social media

Header

Announcement bar
Announcement bar
Mobile menu
Mobile menu
Search bar
Search bar

Sections

Products

Product listings
Product listings
Product badges
Product badges
Quick view
Quick view
Quick add
Quick add

Product page

Product template
Product template
Variant chips
Variant chips
Sticky add-to-cart bar
Sticky add-to-cart bar
Sibling product swatches
Sibling product swatches
Product recommendations
Product recommendations

Collection page

Collections template
Collections template
Banner
Banner
Product grid
Product grid
Filters and sorting
Filters and sorting

Cart

Quick cart
Quick cart
Cart page
Cart page
Added-to-cart popup
Added-to-cart popup
Cross sells
Cross sells
Free shipping bar
Free shipping bar
Low inventory warning
Low inventory warning

Pages

Templates
Templates
Home page
Home page
About page
About page
Blogs page
Blogs page
Blog post
Blog post
Collections list
Collections list
Contact page
Contact page
Password page
Password page
Search page
Search page
404 page
404 page

Support

Support policy
Support policy
Shopify vs Theme issues
Shopify vs Theme issues
Store access requests
Store access requests

Edit Theme JavaScript (Unminified)

If you want to modify only a few components and retain code splitting, consider using Cornerstone's standalone file for custom JavaScript events.

Cornerstone includes a single, editable JavaScript file (assets/theme.js) for custom development that can be enabled in the snippets/theme-globals.liquid file.

Switching to the unminified theme.js disables code splitting, which bundles the theme JavaScript into multiple files used for lazy-loading and improved site performance. We do not recommend editing these files directly.

Switch to theme.js

The theme.js file, when enabled, lets you edit a single JavaScript file, instead of many files, and includes comments from our developers to help you along.

icon
STEPS

Open the theme-globals.liquid file in the Snippets folder.

  1. Find the useUnminThemeJS variable and set it to true
  2. {% assign useUnminThemeJS = false %}
  3. You can now begin editing the theme.js file in the Assets folder.
  4. We highly recommend backing up your theme and documenting any additions for troubleshooting and theme updates, which require manually transferring the code.

How's Cornerstone working for you?

We built Cornerstone with developers in mind. We're looking to create relationships with third-party developers using our themes and want to hear from you about what you're building. Please feel free to reach out with questions or introduce yourself by e-mailing us at developers@fluorescent.co