> For the complete documentation index, see [llms.txt](https://docs.frontnow.com/advise/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frontnow.com/advise/2/integration/display-modes.md).

# Display Modes

## Sidebar (recommended)

The Sidebar display mode displays the Advisor as a fixed sidebar that can be toggled open and closed by the visitor.

To activate Sidebar mode, use the following initialization code:

```javascript
new Advisor({
    mode: "sidebar",
    position: "left", // default: "right"
    width: "800px" // default: 500px
});
```

In this example, the `position` parameter specifies the position of the sidebar, which can be "left" or "right".

## Fullscreen

The Fullscreen display mode takes over the entire screen when activated, providing a distraction-free environment for the visitor to engage with the Advisor.

To activate Fullscreen mode, use the following initialization code:

```javascript
new Advisor({
    mode: "fullscreen"
});
```

## Embedded

The Embedded display mode allows you to embed the Advisor directly into your website's content, providing a seamless user experience.

To activate Embedded mode, use the following initialization code:

```javascript
new Advisor({
    mode: "embedded",
    target: "#advisor-container"
});
```

In this example, the `target` parameter specifies the selector of the HTML element that will contain the embedded Advisor.

## Overlay

The Overlay display mode displays the Advisor as an overlay on top of your website's content, providing a seamless user experience.

To activate Overlay mode, use the following initialization code:

```javascript
new Advisor({
    mode: "overlay"
});
```

These Display Modes provide developers with flexibility in choosing the best way to present Frontnow Advisor to website visitors. By using these Display Modes, you can create a customized experience that is consistent with your website's design and user experience.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.frontnow.com/advise/2/integration/display-modes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
