Lock
Lock an element or component instance so its inner elements cannot be selected or changed by accident on the canvas.
Lock protects a finished part of the design. A locked element still renders normally, but on the canvas its children ignore clicks and touches, and in the Layers panel it shows as a single closed row. You can lock any element from its context menu (Lock / Unlock) and lock a component instance from the Content panel (Lock Yes/No). Use it on navbars, footers or complex sections that clients or teammates should not break while editing nearby content.
How it works
- Stored in tag properties.lock (action put/tags/properties/lock), with undo/redo.
- Canvas: a locked tag gets the attribute dh-lock; CSS 'main [dh-lock] * { pointer-events: none; touch-action: none }' makes its descendants unclickable.
- Layers: a locked tag renders as a closed row without children; for an instance, the inner tree is not expanded.
- Instances of components with variables (widgets) are always rendered with dh-lock, so their inner nodes are edited through the content form.
- Lock has no effect on the published site.
When to use it
- Protect a navbar instance while editing the hero
- Hand a site to a client editor without risk of breaking a complex section
Limitations
- Lock is an editor aid, not a permission: anyone who can edit can unlock.
- The locked element itself can still be selected; only its children are blocked.
Availability
- Works in Designer.
- Included in every plan.
How to use it.
- Right click an element on the canvas or in Layers.
- Choose Lock (or Unlock to release it).
- For an instance you can also use Content > Component > Lock.
Questions.
Does lock change the live site?
Related features.
Browse other features
Designer
Bring your ideas to life with our visual website builder. Drag and drop with ease, or dive into coding when needed.
→AI Studio
Describe it and AI builds it. Every change lands in the same project you can open in the Designer.
→MCP
Connect Claude Code, Cursor or any MCP client and build whole sites with your own agent.
→CMS
Create, organize, and manage your dynamic content with the maximum freedom and flexibility of our visual CMS.
→SEO
Divhunt delivers ultra-fast & structured sites that are good for ranking by default, while offering complete control for customization.
→REST API
Easily link to any REST API endpoint with instant preview and expand your site’s functionality smoother than ever before.
→Plugins
Divhunt offers an open platform for creating plugins to upgrade features, add new capabilities, and simplify building better sites.
→Localization
Localize everything from static pages and CMS content to URLs and metadata, in up to 15 languages with no add-on.
→Interactions
Visually create animations and interactions with a simple, intuitive timeline. Build smooth, engaging experiences without code.
→Custom Files
Manage JS and CSS files with a structure developers love, combining folders and clean organization.
→Memberships
Create plans, decide who sees what and connect it all to your CMS. Build courses, communities or client portals.
→