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
- Enable the Frontend Asset Helper in Nitro minify settings.
- Visit the page on the front end and open the helper from the admin bar.
- Copy the script or style handles you want to remove.
- Edit the page in WordPress (backend editor).
- Paste handles into JS files to remove and/or CSS files to remove (comma-separated).
- Update the page and verify with the helper that those files no longer load.
Divi 5 Visual Builder workflow
- Open the page in the Divi 5 Visual Builder.
- Open the Divi Nitro page settings for removing scripts and styles.
- Add the same handles you identified with the Frontend Asset Helper.
- 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.