How do I edit one Avada element without breaking the layout?

To edit one Avada element without breaking the layout, connect Claude, or ChatGPT on a Business or Enterprise/Edu plan, to your site with Agent Abilities for MCP, a free plugin on wordpress.org, and use the Avada tools added in 1.12.0. The agent reads the page as an outline of elements, names one element by its index and fingerprint, and changes only that element; if that element changed since the read, or saving would alter anything else on the page, the write is refused and nothing is saved. WPBakery Page Builder works the same way, and every one of these tools starts off.

Takeaways:

  • Avada has 18 tools and WPBakery Page Builder has 12. Each set appears only while its builder is active, and the writes are in no access preset except Custom.
  • Update post, Update page and Replace in post refuse a page that Avada owns, so an agent has to use the Avada tools.
  • Update an Avada element changes one element’s settings or inner text. It cannot add or remove an element.
  • Text, links, images, colours and spacing need edit access to the page. Code, raw HTML or JS and page CSS need a user who can post unfiltered HTML.
  • An element edit returns a restore_revision_id when WordPress kept a revision. None of these tools is in the Changes tab.

Why does a normal edit break an Avada page?

Avada keeps a page’s whole layout in the post content as Fusion Builder shortcodes. A button’s words are the element’s inner text, and its link and colours are settings stored as attributes. Rewrite that markup as plain text and the edit can report success while changing nothing, or break the layout.

So the general content tools check who owns the page before any write. Avada is one of ten builders they refuse, with an error that names the builder.

How do I edit one Avada element, step by step?

  1. Check the basics. Avada’s builder plugin (Fusion Builder) must be active, and the element tools need Avada Builder 3.15.6 or later.
  2. Switch on four tools: Get Avada page content, List Avada elements, Update an Avada element and Restore revision, and connect as a user who can edit that page.
  3. Read the outline. Ask for avada-get-page-content with include_structure. It returns each element’s tag, depth, attributes, inner text and a fingerprint, plus a fingerprint for the whole page. The outline stops at 2,000 elements.
  4. Look up the settings. avada-list-elements with a tag returns that element’s settings: label, allowed values and whether the update tool can write it.
  5. Review, then approve. Ask the agent to show each old value beside the new one and wait. If the element shows a global Library item, stop. That item is edited in the Library, not on the page.
  6. Update one element. avada-update-element takes the index and fingerprint, then sets settings, removes them back to default, or replaces the inner text.
  7. Keep the restore point. The response returns the element’s new fingerprint and a restore_revision_id. Use the new fingerprint for the next edit.

What does the guard refuse?

A write that touches more than the element you named is refused. Nothing is saved.

  • A stale element index or fingerprint. Insert, Move and Remove also check the page fingerprint.
  • An element type that Avada’s own element map does not list.
  • A setting the element lacks, a typography or dynamic data setting, or a value of the wrong kind.
  • An update that would add or remove an element.
  • An element that shows a global Library item.
  • A text setting with a double quote, a square bracket, two spaces in a row or a non-breaking space, because Avada’s builder drops or changes it on its next save.
  • A save that would change other content for that user, such as an embed they may not keep.

Who needs unfiltered_html?

unfiltered_html is the WordPress capability to post HTML that WordPress would otherwise filter. The agent gets what its WordPress user can do, and Avada’s own Role Manager is not applied.

To do this The user needs
Change text, links, images, colours and spacing Edit access to that page
Write code blocks, raw HTML or JS, page CSS, or settings that can carry script unfiltered_html
Put square brackets, percent-encoded brackets or data-* attributes in body text unfiltered_html
Edit an Avada layout section, Global Options or Studio items manage_options

Does the same work for WPBakery?

Yes, with its own tools: wpbakery-get-page-content, wpbakery-list-elements and wpbakery-update-element, plus move, insert, remove and a template library. Text kept in an element’s settings, such as a heading or a button label, is changed with Update a WPBakery element. WPBakery Design Options (margins, padding, borders and background) need unfiltered_html.

Adding an element to a WPBakery flexbox or grid container, or moving one into it, is refused. Elements already inside can be edited, reordered and removed. Visual Composer Website Builder, a separate plugin, gets no tools, and its pages keep the refusal.

How do I undo an edit?

Pass the restore_revision_id to Restore revision and the page comes back. It exists only when WordPress kept a revision: some plugins, GeoDirectory among them, turn revisions off site-wide, and then the response says why there is no restore point. A WP_POST_REVISIONS line in wp-config.php sets how many revisions are kept.

Remove an element is refused up front when no revision could bring the element back. Settings, page CSS, page options, layouts and sliders keep no revision. They return the old values in previous, which you send back with the same tool.

What can’t it do?

  • Avada Live, the front-end builder, was not opened after a write in our pre-release browser tests; the backend builders for Avada and WPBakery were. Open the first edited page in the builder yourself and keep a backup.
  • It cannot write Avada typography or dynamic data settings.
  • It cannot remove an Avada form or off canvas panel, because those keep no revisions.
  • It does not undo through the Changes tab.

These controls cover this plugin’s own tools, not tools other plugins register.

Where to go next