Skip to content

Installation

Zoomora can be added to any project in three ways. Choose the method that fits your setup.


Method 1 — CDN (Quickest)

The fastest way to get started. No build tools or package managers required. Add these two lines to your HTML — the CSS in <head> and the JS before </body>:

📄Usagehtml
<!-- In <head> -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zoomora/dist/zoomora.css">

<!-- Before </body> -->
<script src="https://cdn.jsdelivr.net/npm/zoomora/dist/zoomora.umd.min.js"></script>

Best for: Plain HTML projects, quick prototypes, WordPress themes without a build process, or any project where you want zero setup.


Method 2 — npm or Yarn

Install Zoomora as a package and import it into your project.

📄npmbash
npm install zoomora

Then import in your JavaScript entry file:

📄Importjavascript
import Zoomora from 'zoomora';
import 'zoomora/dist/zoomora.css';

Best for: Projects using a bundler like Vite, Webpack, or Rollup — including React, Vue, and modern WordPress themes with an asset pipeline.


Method 3 — Manual Download

Download the latest release directly from GitHub and host the files yourself.

  1. Go to github.com/fronttheme/zoomora/releases
  2. Download the latest release zip
  3. Extract and copy the dist/ folder into your project
  4. Link the files in your HTML:
📄Usagehtml
<!-- In <head> -->
<link rel="stylesheet" href="path/to/dist/zoomora.css">

<!-- Before </body> -->
<script src="path/to/dist/zoomora.umd.min.js"></script>

Best for: Projects where you can’t use a CDN or package manager, or where you need to self-host all assets.


Which File Should I Use?

Once installed, you’ll find these files in the dist/ folder:

FileWhen to Use
zoomora.umd.min.jsCDN, manual download, WordPress enqueue — recommended for most projects
zoomora.umd.jsSame as above but unminified — useful for debugging
zoomora.es.min.jsnpm import with a bundler — production build
zoomora.es.jsnpm import with a bundler — development/debugging
zoomora.cssAlways required — include in every setup

Verify It’s Working

After installing, open your browser’s developer console. If Zoomora loaded correctly, you can type:

typeof Zoomora

It should return "function". If you see "undefined", the script hasn’t loaded — double-check the file path or CDN URL.


Next Step

Now that Zoomora is installed, head to Quick Start to add your first lightbox in under two minutes.

On This Page