# Disable lightbox in post baking

**URL:** https://meta.discourse.org/t/disable-lightbox-in-post-baking/140915
**Category:** Support
**Created:** [February 6, 2020, 7:23pm UTC](https://meta.discourse.org/t/disable-lightbox-in-post-baking/140915 "2020-02-06T19:23:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![maggiomj](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@maggiomj](https://meta.discourse.org/u/maggiomj)
#### Post date: [February 6, 2020, 7:23pm UTC](https://meta.discourse.org/t/disable-lightbox-in-post-baking/140915/1 "2020-02-06T19:23:53Z")

</div>

I am interacting with Discourse via the APIs. The lightbox feature is giving our front-end a bit of a headache, and I would like to simply turn off that replacement. Is there a configuration point for that?

So far I have tried

- setting SiteSettings.create\_thumbnails to false
- clearing all values for SiteSettings.responsive\_post\_image\_sizes

Things I wanted to try but am not finding config points for:

- Bumping up the value for something to be put in the custom field Post::LARGE\_IMAGES

Other suggestions are appreciated (and sorry if this is the wrong category)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [February 8, 2020, 8:49pm UTC](https://meta.discourse.org/t/disable-lightbox-in-post-baking/140915/2 "2020-02-08T20:49:44Z")

</div>

I’m pretty sure this can’t be disabled as it is a core feature.

---

<div class="post-metadata">

### Author: ![jamesmarkcook](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesmarkcook/32/168563_2.png) [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)
#### Post date: [February 27, 2020, 6:24pm UTC](https://meta.discourse.org/t/disable-lightbox-in-post-baking/140915/4 "2020-02-27T18:24:21Z")

</div>

I’ve just been looking into this myself as we’re building our own frontend and might not necessarily want the lightbox stuff.

FYI it gets added in `CookedPostProcessor#add_lightbox!`. You’ll need to modify the code through a plugin to stop this method being called.

The whole process starts with `PostJobsEnqueuer` which is called from the `PostCreator` (so whenever a post is created).

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 10, 2024, 3:09pm UTC](https://meta.discourse.org/t/disable-lightbox-in-post-baking/140915/5 "2024-02-10T15:09:29Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [February 11, 2024, 8:41am UTC](https://meta.discourse.org/t/disable-lightbox-in-post-baking/140915/6 "2024-02-11T08:41:18Z")

</div>


