Skip to main content

Remove Code From Specific Pages

What it does

Remove scripts and styles that are not needed on a specific page. Use this carefully — removing the wrong file can break layouts or interactions on that page only.

Where to find it

  • Frontend Asset Helper (admin bar) to discover handles
  • WordPress page editor meta box fields for JS/CSS to remove
  • Divi 5 Visual Builder page settings (same remove lists as the meta box)

Divi 4 / classic editor workflow

  1. Enable the Frontend Asset Helper in Nitro minify settings.
  2. Visit the page on the front end and open the helper from the admin bar.
  3. Copy the script or style handles you want to remove.
  4. Edit the page in WordPress (backend editor).
  5. Paste handles into JS files to remove and/or CSS files to remove (comma-separated).
  6. Update the page and verify with the helper that those files no longer load.

Divi 5 Visual Builder workflow

  1. Open the page in the Divi 5 Visual Builder.
  2. Open the Divi Nitro page settings for removing scripts and styles.
  3. Add the same handles you identified with the Frontend Asset Helper.
  4. Save and view the front end to confirm.
warning

Test after every change. Prefer removing only unused third-party assets — not core Divi or Divi Engine handles required on that page.

What's Next