> For the complete documentation index, see [llms.txt](https://help.pagefly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pagefly.io/faq-and-troubleshooting/troubleshooting/live-site-issue/why-the-pages-style-is-broken.md).

# The page's style is broken

### Overview

Summary:

This article explains what it means when a PageFly page’s style is “**broken**” and how to fix it. A broken style means the page’s layout (such as margins, padding, size, or fonts) appears chaotic in live view compared to how it looks in the editor.

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-1610fc60313295ff6dffc26b67a60c66c9b0e327%2FAD_4nXfnRkc1HOZ_g3Y_l66rmA0MYZ6tCXAIduyn4VNa6wTPnvtxCQDsn4RLc9QyFRbHpLxzwouEbVku0GYfcC6bhLhKy1j-uNEDWwfhCHzG35au4HlkrMiANWuMWZO0bS34I2UkeyLyHHXUB-HURF-ag8m0Nm0pIu.gif?alt=media)

### Requirement

* Published Theme: Ensure that your Shopify store’s theme is published. Unpublished themes can prevent PageFly’s code from executing properly.

### How to publish PageFly page to fix Page’s Style Broken?

Quickly fix your Page Style’s Broken by publishing your page:

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-b68044807241fb0cefc44cf681be191bb05106a7%2FAD_4nXe9cpats5wvUAAGaQ1jJG_7njjyo-_InfWE0t_hT0ZbvXr76RmEOijKLHAML1qpL0sZADfWJpMAKUNoYfm9TDzyq2NhXqBD00Nrq2nxFwFZSCj2TwHcWz_hjseQ5i5T-gkeyLyHHXUB-HURF-ag8m0Nm0pIu.gif?alt=media)

### Use Cases

* New Installation: If you’ve just installed PageFly, created a page, and noticed the layout looks messy or disorganized in the live view, it’s likely because the necessary code hasn’t fully loaded into the store’s theme yet.
* Theme Switching: If you’ve recently changed your Shopify store’s theme, PageFly pages might lose their proper styling. This happens because the new theme hasn’t fully integrated PageFly’s code, leading to layout issues. You can check for PageFly compatible status with your theme [here](https://help.pagefly.io/manual/switch-theme-process-in-pagefly/).

### Frequently Asked Questions

**1. What if publishing the page doesn’t fix the issue?** If re-publishing the page doesn’t resolve the styling issue, contact PageFly support by clicking [here](https://help.pagefly.io/manual/how-can-i-access-the-pagefly-live-chat/) for further assistance. They can help ensure the necessary code is executed correctly within your store’s theme.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.pagefly.io/faq-and-troubleshooting/troubleshooting/live-site-issue/why-the-pages-style-is-broken.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
