# Portfolio: View Projects in a Right Panel Without Leaving the Grid

**URL:** <https://community.elfsight.com/t/portfolio-view-projects-in-a-right-panel-without-leaving-the-grid/178776>\
**Category:** Platform Tips\
**Tags:** squarespace\
**Created:** [November 10, 2026, 7:21am UTC](https://community.elfsight.com/t/portfolio-view-projects-in-a-right-panel-without-leaving-the-grid/178776 "2026-11-10T07:21:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuanphan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/tuanphan/32/3165_2.png) [@tuanphan](https://community.elfsight.com/u/tuanphan)\
**Post date:** [November 10, 2026, 7:21am UTC](https://community.elfsight.com/t/portfolio-view-projects-in-a-right-panel-without-leaving-the-grid/178776/1 "2026-11-10T07:21:16Z")

</div>

This code opens each Portfolio project in a panel that slides in from the right, so visitors can browse projects without leaving the grid. The URL updates too, so the browser’s back button and shared links still work.

- [view demo](https://maya-collins-photography.squarespace.com/portfolio?noredirect) – password: abc

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/d/c/dc111b0e484dadd3a41113eb00fdad167cb29e10.jpeg)

**#1. Install Code**

Note: this will require [Section Loader Plugin](https://www.will-myers.com/products/p/section-loader-supreme?peachs_apc=tuan-phan)

**#1.1.** After purchased plugin, you can copy this line from Installation Page

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/0/d/0d8f1943f951bc22a08221acc2dbb486be063298.png)

and add it to Code Injection \> Header, like this

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/2/3/2387e71a62cda5d43c8f43f498c44c3b1055b208.png)

**#1.2.** Add this code to Portfolio Page Header Injection

```auto
<!-- 10.26c29v12 Portfolio 01 Style 02: Right Panel Popup on Click -->
<script>
window.pp29Settings = {
  panelWidth: '75%',
  panelWidthTablet: '90%',
  panelWidthMobile: '100%',
  panelBackground: 'var(--siteBackgroundColor, #F5EEE4)',
  panelShadow: '-24px 0 60px rgba(46,38,34,.18)',
  contentTopSpace: '0px',
  animationDuration: 500,
  overlayColor: 'rgba(46,38,34,.5)',
  overlayBlur: '0px',
  closeOnOverlayClick: true,
  closeOnEscape: true,
  closePosition: 'left',
  closeOffset: '20px',
  closeSize: '46px',
  closeIconSize: '16px',
  closeIconThickness: '1.5px',
  closeRadius: '50%',
  closeBackground: '#FBF7F1',
  closeColor: '#2E2622',
  closeBorder: '1px solid #E0D3C4',
  closeShadow: '0 6px 18px rgba(46,38,34,.08)',
  closeHoverBackground: '#2E2622',
  closeHoverColor: '#FBF7F1',
  closeHoverBorderColor: '#2E2622',
  backButton: false,
  backButtonText: 'All stories',
  updateUrl: true,
  preloadOnHover: true
};
</script>
<script src="https://code.beaverhero.com/portfolio/1026c29v12portfolio01style02rightpanelpopup.js"></script>

```

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/4/3/43b5399fcb84643f66f2416a281fbd9b291fbd46.jpeg)

**#2. Customize**

**#2.1.** To change Right Panel Style (width, background, left shadow), change these lines

```auto
panelWidth: '75%',
 panelWidthTablet: '90%',
 panelWidthMobile: '100%',
 panelBackground: 'var(--siteBackgroundColor, #F5EEE4)',
 panelShadow: '-24px 0 60px rgba(46,38,34,.18)',

```

**#2.2.** To change overlay color, change this

```auto
overlayColor: 'rgba(46,38,34,.5)',
  overlayBlur: '0px',

```

**#2.3.** To change Close Icon style, change these

```auto
closePosition: 'left',
  closeOffset: '20px',
  closeSize: '46px',
  closeIconSize: '16px',
  closeIconThickness: '1.5px',
  closeRadius: '50%',
  closeBackground: '#FBF7F1',
  closeColor: '#2E2622',
  closeBorder: '1px solid #E0D3C4',
  closeShadow: '0 6px 18px rgba(46,38,34,.08)',
  closeHoverBackground: '#2E2622',
  closeHoverColor: '#FBF7F1',
  closeHoverBorderColor: '#2E2622',

```

**#2.4.** To add Back button between Pagination, like this

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/7/1/717f004eb7699cff75aff7cec4094e421c0b7115.png)

You can change these

```auto
backButton: true,
  backButtonText: 'All stories',

```

To make loop pagination (show both projects in Pagination Next/Previous), you can **follow this code**. Then make sure backButton: false;

```auto
backButton: false,

```

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/e/5/e569e9a95ed6673c6e9ff692e551837e655ec78b.png)
