# Remove the blank space on top of the page

### Overview

This article explains [how to remove the blank space at the top of your page](https://help.pagefly.io/manual/remove-blank-space-on-top-of-the-page/) when integrating a Shopify free theme, such as Debut or Narrative, with PageFly.

![](/files/GK97MZqC2TeXfESWFDmn)

### How To Remove Blank Space On Top Of The Page?

You can consult this video for more visualization about how to remove the blank space on the top of the page as well as other related issues to the theme conflict:

{% embed url="<https://youtu.be/ESEMMkd3c8Y?si=g2hXesSADFXpWIqv>" %}

#### Step 1: Access Add Custom Code Editor

Click the "**Custom code editor**" icon located at the bottom of the left sidebar to open the custom code editor.

![](/files/nHb3KVXQuVNyUDMIBZmt)

#### Step 2: Insert the custom code into the CSS section

Get [the code](http://pastebin.com/raw/GSHtHKZy)here and then paste it onto the Custom CSS tab of Custom code editor.

![](/files/bkhtJAH8WWgKnBCVTbSc)

#### Step 3: Publish The Page

Click on the **Save** button then **Publish** button to publish your page. You can click on Live view button to view the results

![](/files/snqz7HGfl6Uqn3KBvrsH)

### Tips And Best Practices

#### Remove The Blank Space At The Bottom Of The Page

When using the Narrative theme with PageFly, you might see the white space at the bottom of the page, between your PageFly page and the footer.

![](/files/oY4y8TDiFoY9TVxeiysV)

All you need to do is copy [the code](http://pastebin.com/raw/KDy222sg) here, paste it into the CSS tab of the Custom code editor and update the design.

![](/files/3QOPsDOZq0vuYcOUEItv)

For the Debut theme, add [this code](https://pastebin.com/raw/vzbmR096) into the Custom code (CSS tab) section to remove the white space. And feel free to contact us via Live chat for support if you run across similar problems with other themes.

### Frequently Asked Questions

**1. How do I remove the blank space at the top of my Shopify page?**

To remove the blank space, open the Custom code editor and insert the provided custom [code](http://pastebin.com/raw/GSHtHKZy) into the CSS section. Don’t forget to save your changes and publish.

**2. Can I see the changes before my page goes live?**

Yes, after saving and publishing your changes, you can click on Live view to see how the page looks.

### Additional Resources

* [Page not fully displayed in theme preview mode](https://help.pagefly.io/manual/page-not-fully-displayed-in-theme-preview-mode/)
* [Coming Soon Page | How to Create with PageFly?](https://help.pagefly.io/manual/how-to-create-a-coming-soon-page-with-pagefly/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.pagefly.io/faq-and-troubleshooting/troubleshooting/live-site-issue/remove-blank-space-on-top-of-the-page.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
