---
title: 'FancyBox2 add-on (Statamic v1)'
url: 'https://maxwesten.nl/projects/statamic-addons/fancybox-plugin'
markdown: 'https://maxwesten.nl/projects/statamic-addons/fancybox-plugin.md'
date: '2012-07-08'
description: 'UPDATE: This add-on is for Statamic V1 -- Deprecated! This is an addon for Statamic V1. The development and support has stopped. Introduction Statamic plugin that adds Fancybox2 lightbox to your images on your site. Make sure you read the Fancybox2 licensing conditions regarding commercial use. I…'
taxonomy:
  archives_month:
    - jul_2012
  archives_year:
    - '2012'
---

# FancyBox2 add-on (Statamic v1)

[Home](https://maxwesten.nl/)  [Projects](https://maxwesten.nl/projects)  [Statamic Addons](https://maxwesten.nl/projects/statamic-addons)  FancyBox2 (S1) 

## [FancyBox2 add-on (Statamic v1)](https://maxwesten.nl/projects/statamic-addons/fancybox-plugin)[on GitHub](https://github.com/mwesten/Plugin-Fancybox)

    8th Jul 2012  

## UPDATE: This add-on is for Statamic V1 -- Deprecated!

This is an addon for Statamic V1. The development and support has stopped.

## Introduction

Statamic plugin that adds [Fancybox2](http://fancyapps.com/fancybox) lightbox to your images on your site.

Make sure you read the Fancybox2 [licensing conditions](http://fancyapps.com/fancybox/#license) regarding commercial use.

## Installation

### Clone or Copy the files to their destination

Clone this project on your system:

```
cd webfolder/_add-ons
git clone git://github.com/mwesten/Plugin-Fancybox.git fancybox
```

Or download the project and add the contents of archive to the `_add-ons/fancybox` folder.

### Add the fancybox init code to your head

Open the theme file layout (for example) `_themes/london-wild/layouts/default.html`Add the following code in your `<head>` section **after** the jquery initialisation:{{noparse}}

```
{{ fancybox:head }}
```

{{/noparse}} 
## Usage

The way it's configured right now is that all images that link to another image and are contained in the `<article>` tag with the `entry` class are fancyboxed. If you need another selector, you can add this as parameter to the init-code like so: {{noparse}}

```
{{ fancybox:head selector="div.post"}}
```

 {{/noparse}} If a link has the `lightbox` class, it will be fancyboxed too.

To override the fancybox options, you have to modify the plugin code at the moment.

[←](https://xn--sr8hvo.ws/%F0%9F%92%95%F0%9F%8E%89%E2%A4%B5%EF%B8%8F/previous)An IndieWeb Webring 🕸💍 [→](https://xn--sr8hvo.ws/%F0%9F%92%95%F0%9F%8E%89%E2%A4%B5%EF%B8%8F/next)

---

## Navigation

- Parent: [Statamic Addons](https://maxwesten.nl/projects/statamic-addons.md)
- Previous: [Highlight.js add-on (Statamic v1)](https://maxwesten.nl/projects/statamic-addons/highlight-plugin.md)
- Next: [Tweets add-on (Statamic v1)](https://maxwesten.nl/projects/statamic-addons/tweets-plugin.md)
