Fluorescent
Ira
Ira
  • Ira Help Center
    • ⚠️Theme retirement
    • FAQs
    • Theme updates
      • Upgrade to OS2
    • Changelog
  • General
    • Editing themes
      • Adding sections
      • Using templates
      • Accessibility
      • Customizing your site
      • Online store speed
    • Image guide
      • Web ready photography
      • Image sizes
      • File formats
      • Theme image settings
    • Adapting theme content
      • Edit default theme content
      • Multiple languages
      • Dynamic content with metafields
      • Unique content for markets
  • Theme styles
    • Theme settings
    • Style presets
    • Fonts
    • Colors
    • Animation
    • Layout
    • Quick shop
  • Pages
    • Templates
      • About page
      • Blogs page
      • Blog posts template
      • Collections list page
      • Contact page
      • Password page
      • Search page
      • 404 page
      • Home page
    • Announcement bar
    • Header
      • Logo
      • Layout and style
      • Mega navigation
      • Transparent header
      • Quick search
      • Customer account link
    • Footer
      • Links block
      • Newsletter block
      • Text block
      • Language selector
      • Country selector
      • Payment icons
      • Social media icons
      • Footer text
  • Sections
    • Theme sections
      • Blog posts
      • Collection list
      • Featured collection
      • Featured product
      • Featured products
      • Gallery
      • Image with text
      • Map
      • Mosaic grid (2 columns)
      • Mosaic grid (3 columns)
      • Newsletter
      • Rich text
      • Slideshow
      • Testimonials
      • Text columns with images
      • Video
    • Popups
  • Products
    • Product listings
  • Product pages
    • Product template
      • Pre-order template
      • Gift recipient form
    • Layout and style
    • Product page blocks
      • Default blocks
        • Title
        • Price
        • Description
        • Variant selector
        • Quantity selector
        • Buy buttons
        • Local pickup banner
        • Share icons
      • Accordion block
      • Information popup
      • Stock level indicator
      • Text block
      • App blocks
    • Product page sections
      • Product reviews
      • Recommended products
      • Complementary products
    • Variant chips
    • Variant swatches
      • Enable swatches
      • Use default colors
      • Use custom images
      • Show on product listings
  • Collection pages
    • Collection template
    • Banner
    • Product grid
    • Filters and sorting
  • Cart
    • Cart page
    • Fly-out cart
  • Support
    • Support policy
    • Shopify vs Theme issues
    • Store access requests
  • For developers
    • Custom CSS
    • Custom fonts
    • Custom Liquid
    • Custom JavaScript events
    • Edit Theme JavaScript
Powered by GitBook
On this page

Was this helpful?

  1. For developers

Edit Theme JavaScript

Advanced

Last updated 1 year ago

Was this helpful?

Theme retirement Ira is no longer available on the Shopify theme store. Theme support and updates for current users will end after May 18, 2024. .

We do not support code customizations. This guide offers a basic reference for developers. Always test code changes on a duplicated, unpublished version of your theme. For assistance, we recommend finding a professional developer through or .

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

Ira 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.

STEPS

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

  1. Find the useUnminifiedThemeJS variable and set it to true

```json

{% assign useUnmininfiedThemeJS = false %}


```

2. You can now begin editing the **`theme.js`** file in the **Assets** folder.

> We highly recommend backing up your theme and documenting any additions for troubleshooting and theme updates, which require manually transferring the code.

How's Ira working for you?

We built Ira 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


Related links

Learn more here
Shopify Experts ↗
Task Husky ↗
custom JavaScript events
developers@fluorescent.co
Custom JavaScript events
Custom Liquid
Custom CSS
Custom fonts