# Edge theme, implementing PhotoSwipe (pswp) for Post image

**URL:** <https://forum.ghost.org/t/edge-theme-implementing-photoswipe-pswp-for-post-image/42844>\
**Category:** Themes\
**Created:** [November 20, 2023, 12:28pm UTC](https://forum.ghost.org/t/edge-theme-implementing-photoswipe-pswp-for-post-image/42844 "2023-11-20T12:28:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgolemanov](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mgolemanov](https://forum.ghost.org/u/mgolemanov)\
**Post date:** [November 20, 2023, 12:28pm UTC](https://forum.ghost.org/t/edge-theme-implementing-photoswipe-pswp-for-post-image/42844/1 "2023-11-20T12:28:41Z")

</div>

Hi, im addapting Edge theme for painting portfolio. Its verry nice minimalistic theme, but i wouldlike to implement some more functions.

I’m trying to addapt PhotoSwipe (pswp - which is integrated and work for related …) to work for the **post image** (not gallery ). The idea is that i wouldlike to see the full size post image in full screan and all the functionality of pswp. I understand that the next and prev will not work but the rest of the functions are really usefull.

Is it possible to addaot feature-image.hbs which look like this:

```auto
{{#if feature_image}}
<figure class="gh-article-image">
        <img srcset="{{img_url feature_image size="l"}} 300w, 
        {{img_url feature_image size="m" }} 750w, 
        {{img_url feature_image size="l" }} 1140w, 
        {{img_url feature_image size="xl" }} 1920w" 
        sizes="(min-width: 1170px) 1140px, calc(100vw - 30px)" 
        src="{{img_url feature_image size="l"}}" 
        alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}">
    {{#match primary_tag.name "blog"}}
    {{else}}
    <h1 class="photo-caption">{{title}} • {{tags autolink="false" separator=" • "}} </h1>
    {{/match}}
    {{!-- {{#if feature_image_caption}}
    <figcaption>{{feature_image_caption}}</figcaption>
    {{/if}} --}}
</figure>
{{/if}}

```

and to call:

```auto
<a class="post-lightbox" aria-label="Expand image" href="{{img_url feature_image}}">
            {{> "icons/maximize"}}
        </a>

```

---

<div class="post-metadata">

**Author:** ![bugmanavery](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bugmanavery/32/33018_2.png) [@bugmanavery](https://forum.ghost.org/u/bugmanavery)\
**Post date:** [November 19, 2024, 4:46pm UTC](https://forum.ghost.org/t/edge-theme-implementing-photoswipe-pswp-for-post-image/42844/2 "2024-11-19T16:46:16Z")

</div>

Sorry to bump such an old thread, but did you ever make progress on this? I’ve been trying to do the same thing and I have not made any progress.
