> For the complete documentation index, see [llms.txt](https://shoppad.gitbook.io/pagestudio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shoppad.gitbook.io/pagestudio/troubleshooting/enable-full-width-pages.md).

# Enable full-width pages

Follow the steps below on how to add a page template that allows Page Studio pages to stretch the entire width of the browser.

1. Starting from your Shopify dashboard, click on **Online Store**, **Themes**, then **Edit code**.

<figure><img src="/files/YK5tFOBeUBeh1PGDosQm" alt=""><figcaption></figcaption></figure>

2. Locate the **Layout** folder and click on the folder icon to add a new layout button called *fullwidth*.

<figure><img src="/files/t4d649klTNsDhY1tZJW8" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/98o6I3nnOcnucob5B8Y9" alt=""><figcaption></figcaption></figure>

3. Locate the following code snippet below in the **theme.liquid** file.

```html
{{ content_for_layout }}
```

4. Remove any surrounding code that wraps the snippet *(this code usually prevents pages from stretching the full width)*.

***Before***

<figure><img src="/files/EjDOEZs4fnfmbigS9iLz" alt=""><figcaption></figcaption></figure>

***After***

<figure><img src="/files/f8KCyLV37m5yJFNzodo3" alt=""><figcaption></figcaption></figure>

5. Add the following code snippet below it and save your changes.

```html
<style>
  body {
    margin: 0;
  }
</style>
```

<figure><img src="/files/7Uv59ONv5iKww5blSPLm" alt=""><figcaption></figcaption></figure>

6. Now locate the **Templates** folder, then click on the folder icon to add a new template for a page called *studio.fullwidth*.

<figure><img src="/files/1DlVEi0L0U5oBtxmVqEs" alt=""><figcaption></figcaption></figure>

10\. Replace all the code within the **page.studio.fullwidth.liquid** file with the following snippet.

```html
{% layout 'theme.fullwidth' %}
<link href="//studios.cdn.theshoppad.net/pagestudio/blocks.css?v={{ page.metafields.global.version | default: 3 }}&shop={{ shop.permanent_domain }}" rel="stylesheet" type="text/css"/>
<script src="//studios.cdn.theshoppad.net/pagestudio/pagestudio.dist.js?v={{ page.metafields.global.version | default: 3 }}"></script>
<div class="studioengine">{{ page.content }}</div>
```

11\. **Save** your changes.

You will now be able to select the **page.studio.fullwidth** template from the Page Studio dashboard, which will allow the page's content to stretch the entire width of the screen.

![](/files/z7IBTwm7WdwkoNku493v)
