Integrations · Divi

Divi Images and Backgrounds, Resolved

Divi bakes image and background URLs directly into its shortcode and block markup instead of linking them by attachment ID the way most page builders do. A plain copy keeps those URLs pointed at the old site — PostDeploy Pro finds and rewrites them to the destination's real copies.

Why Divi needs different handling

URLs, not attachment IDs

Most page builders reference an image by its attachment ID. Divi writes the full URL straight into the module's shortcode or block markup.

Tablet & phone variants

Responsive background image overrides for tablet and phone are separate values that also need rewriting, not just the default desktop background.

Divi 4 and Divi 5 differ

Divi 4 uses classic shortcode markup; Divi 5 is block-based. A fix built for one format's syntax misses the other entirely.

What Pro resolves

URL-based rewriting across both Divi versions

  • Images
  • Background images
  • Tablet / phone variants
  • Divi 4
  • Divi 5
  • Gallery module (Divi 4)

One honest exception: the Gallery module's attachment-ID list is resolved for Divi 4's classic module; Divi 5's gallery block format isn't handled yet.

FAQ

Frequently asked questions

Why does Divi need special handling at all?

Divi bakes image and background URLs directly into its shortcode (Divi 4) and block (Divi 5) markup instead of linking them by attachment ID the way most page builders do. A plain content copy keeps those URLs pointed at the source site.

Does this work on both Divi 4 and Divi 5?

Yes, the URL-based rewriting covers Divi 4's classic shortcode format and Divi 5's block format. One exception: the Gallery module's attachment-ID list is currently resolved for Divi 4's classic module; Divi 5's gallery block format isn't handled yet.

What about tablet and phone background image variants?

Those are resolved too, not just the default desktop background.

Stop re-uploading Divi backgrounds by hand.

Start free, or get Pro for Divi, ACF, Elementor, WPML, rollback, and automation.

PostDeploy Pro — stop copy-pasting content between WordPress sites.

Get Pro