Skip to main content

Edit Post Module (Edit/Delete Posts)

Editing and deleting posts with the Edit Post Button

The Edit Post Button module lets users edit (or delete) existing posts, pages, products, or custom post types from the front end. Add the module to a Theme Builder template and point it to the page or Divi Library layout that contains your create/edit form.

For complete settings tables, permissions, and loop targeting, see the Edit Post Button module reference.

Prerequisites

  • A Create form (post, page, CPT, or product) already set up for creating and editing entries.
  • A Theme Builder template assigned to the single view of the post type, so the edit/delete button appears on the correct posts. See Divi Theme Builder.
  • Field mappings are in place for any values you want users to update.

Setting up the Edit Post Button module

  1. Open Divi Theme Builder and edit the template used for single posts of the post type.
  2. In the layout, add the Edit Post Button module where the button should appear (for example below title or meta).
  3. Configure:
    • Button Action — Edit Post or Delete Post.
    • Edit Button Text / Delete Button Text — Label for the button.
    • Show in Modal — Open the form in a modal instead of navigating. Choose a Modal Form Layout (Divi Library) that contains the edit form.
    • Edit Form Page — When modal is off, select the page that contains the create/edit form.
    • Delete Confirmation Message and Redirect URL After Delete when using delete.
Permissions on Divi 5

The button is shown to logged-in post authors and administrators (manage_options). Guests never see it. The builder toggle Show to Author Only is not applied by the Divi 5 renderer; use Divi Display Conditions for extra restrictions. Details: Edit Post Button module.

Verify it works

  1. Open a single post as an eligible user and confirm the button appears.
  2. Click edit, update one field, and save.
  3. Reload the post and confirm changes persist.
  4. Test as a guest and as a non-author, non-admin user to confirm the button stays hidden.

Common pitfalls

  • Button does not appear when the visitor is a guest or is neither the author nor an administrator.
  • Template assignment or display conditions hide the module unexpectedly.
  • Edit page fails when it does not include the expected post form.
  • Modal layout does not contain a mapped create/edit form for that post type.

What's Next