# Upgrade to newest Kirby - need advice to rebuild site

**URL:** <https://forum.getkirby.com/t/upgrade-to-newest-kirby-need-advice-to-rebuild-site/32239>\
**Category:** Questions\
**Created:** [August 13, 2024, 12:46pm UTC](https://forum.getkirby.com/t/upgrade-to-newest-kirby-need-advice-to-rebuild-site/32239 "2024-08-13T12:46:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![boerup](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@boerup](https://forum.getkirby.com/u/boerup)\
**Post date:** [August 13, 2024, 12:46pm UTC](https://forum.getkirby.com/t/upgrade-to-newest-kirby-need-advice-to-rebuild-site/32239/1 "2024-08-13T12:46:53Z")

</div>

Hello

I have an old, simple Kirby site that I created myself with images and videos that are shown in a lightbox. ([http://synsnerve.dk/objekter](http://synsnerve.dk/objekter) - for some reason the lightbox doesn’t work in the https version).

My question is: Would it be easy to re-create this site in the latest Kirby? Simple pages with a gallery where the assets open in a lightbox (and videos can play in the lightbox) + the user can navigate to the next/previous asset while staying in the lightbox mode. Is this easy to create with plugins in Kirby or would I need to code it again with PHP? I don’t see any of the templates avaialble that have this simple fucktionality.

I hope you can help. I want to upgrade and rebuild the site, but my PHP abilities are long gone.

Br, Anders

---

<div class="post-metadata">

**Author:** ![aoimedia](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/aoimedia/32/13722_2.png) [@aoimedia](https://forum.getkirby.com/u/aoimedia)\
**Post date:** [August 13, 2024, 2:28pm UTC](https://forum.getkirby.com/t/upgrade-to-newest-kirby-need-advice-to-rebuild-site/32239/2 "2024-08-13T14:28:48Z")

</div>

Hello,

I don’t think it would be too difficult to replicate your current (beautifully minimal) website with the latest Kirby [Starterkit](https://getkirby.com/try) (with built-in lightbox) in terms of layout and image galleries etc.

However, the aforemenioned lightbox is rather limited (albeit by design). In this respect I chose [SimpleLightbox](https://simplelightbox.js.org/) for a recent client site built with Kirby. This offers the next/previous navigation functionality you require with very little configuration. Works smoothly on conventional and touch displays too.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![rasteiner](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/rasteiner/32/4788_2.png) [@rasteiner](https://forum.getkirby.com/u/rasteiner)\
**Post date:** [August 13, 2024, 3:15pm UTC](https://forum.getkirby.com/t/upgrade-to-newest-kirby-need-advice-to-rebuild-site/32239/3 "2024-08-13T15:15:11Z")

</div>

> [@boerup](#):
>
> for some reason the lightbox doesn’t work in the https version

that is because of the browser blocking mixed content:

> **[Mixed content - Security on the web | MDN](https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content#blockable_content)**
>
> When a web page is loaded from a secure origin, over a secure channel such as HTTPS, the connection with the web server is encrypted, and is therefore protected from eavesdropping and modification by man-in-the-middle attacks.
> If the securely...

In other words, you are trying to load scripts from insecure origins. The browser blocks those when the page is loaded via a secure connection. Specifically, in your case you’re trying to load jQuery from an http url:

```html
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

```

Notice the **http://**.

---

<div class="post-metadata">

**Author:** ![boerup](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@boerup](https://forum.getkirby.com/u/boerup)\
**Post date:** [August 13, 2024, 3:35pm UTC](https://forum.getkirby.com/t/upgrade-to-newest-kirby-need-advice-to-rebuild-site/32239/4 "2024-08-13T15:35:42Z")

</div>

That makes sense! Thank you.

---

<div class="post-metadata">

**Author:** ![boerup](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@boerup](https://forum.getkirby.com/u/boerup)\
**Post date:** [August 13, 2024, 3:36pm UTC](https://forum.getkirby.com/t/upgrade-to-newest-kirby-need-advice-to-rebuild-site/32239/5 "2024-08-13T15:36:11Z")

</div>

Thank you! Will the SimpleLightbox play videos as well?

---

<div class="post-metadata">

**Author:** ![aoimedia](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/aoimedia/32/13722_2.png) [@aoimedia](https://forum.getkirby.com/u/aoimedia)\
**Post date:** [August 13, 2024, 4:09pm UTC](https://forum.getkirby.com/t/upgrade-to-newest-kirby-need-advice-to-rebuild-site/32239/6 "2024-08-13T16:09:44Z")

</div>

Sorry, as far as I am aware this particular Lightbox does not support video. However, it should be easy enough to source an alternative that does.

---

<div class="post-metadata">

**Author:** ![boerup](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@boerup](https://forum.getkirby.com/u/boerup)\
**Post date:** [August 13, 2024, 5:32pm UTC](https://forum.getkirby.com/t/upgrade-to-newest-kirby-need-advice-to-rebuild-site/32239/7 "2024-08-13T17:32:16Z")

</div>

Thanks again. So, this means that I have to code PHP in order to implement a lightbox, right? I had hoped that I could just use a plugin within Kirby.

---

<div class="post-metadata">

**Author:** ![aoimedia](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/aoimedia/32/13722_2.png) [@aoimedia](https://forum.getkirby.com/u/aoimedia)\
**Post date:** [August 13, 2024, 6:13pm UTC](https://forum.getkirby.com/t/upgrade-to-newest-kirby-need-advice-to-rebuild-site/32239/8 "2024-08-13T18:13:37Z")

</div>

No PHP knowledge required. All you are doing is integrating the Javascript and CSS files used to power the Lightbox. You can see how this is done by examining the source code of the Starterkit.
