Skip to content

Commit b06d525

Browse files
committed
feat: mention about the phcode-no-lp-edit class
1 parent ce84ae4 commit b06d525

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

docs/07-Pro Features/01-live-preview-edit.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ When **Inspect Element on Hover** is unchecked:
104104
- Hovering over elements has no effect
105105
- Clicking an element shows highlights, the Info Box, and the Tool Box
106106

107-
Alternatively, you can change this setting by updating the `livePreviewElementHighlights` preference in the preferences file. Set it to `"hover"` (default) or `"click"`. See [Editing Preferences](../editing-text#editing-preferences) to learn how to edit the preferences file.
107+
Alternatively, you can change this setting by updating the `livePreviewElementHighlights` preference in the preferences file. Set it to `"hover"` (default) or `"click"`.
108+
See [Editing Preferences](../editing-text#editing-preferences) to learn how to edit the preferences file.
108109

109110
---
110111

@@ -228,3 +229,20 @@ The button is partially visible as a thin strip at the top edge of the Live Prev
228229

229230
---
230231

232+
## Disabling Edit Mode for Specific Elements
233+
234+
If you have interactive elements (like navigation menus, modals, or carousels) that need to respond to clicks normally, you can exclude them from Edit Mode behavior.
235+
236+
Add the `phcode-no-lp-edit` class to any element you want to behave normally:
237+
238+
```html
239+
<div class="phcode-no-lp-edit">
240+
<!-- Clicks and interactions inside this element work normally -->
241+
</div>
242+
```
243+
244+
When an element has this class, the element behaves as if you're in Preview Mode.
245+
> This also applies to all child elements inside the marked element.
246+
247+
> Placing your cursor on the element in the source code will still select it in Live Preview and allow you to use edit features.
248+

0 commit comments

Comments
 (0)