Website setup · Version 1.1
One calculator. Full-height on your page.
Use this automatically resizing replacement embed on your WordPress page. It expands and contracts to fit the current calculator step, without a separate calculator scrollbar. Version 1.1 keeps your supplied CRM form, polished PDF download, and instructions to email the file to Josh@MadPelicanMarketing.com.
Visitors scroll the webpage normally when it is taller than their screen. The calculator is not squeezed into one screen or cut off; the contact dialog keeps its existing layout. Automatic sizing is restricted to pages on https://madpelicanmarketing.com.
Publish before replacing the embed
Publish the current project to app-dbc2679c.vibe-app.ai, then replace the WordPress embed with the code below. The replacement listens for mpm-calculator-height messages and requests a fresh measurement with mpm-request-height. The calculator also supports the previous automatically resizing embed, but a plain fixed-height iframe still needs this replacement code. Publishing alone cannot update code saved in WordPress. The version label remains 1.1. This guide does not publish the app or change WordPress.
Replace, don’t add another block
- Open your Marketing Cost Calculator page in the WordPress editor.
- Remove the existing calculator embed blocks. Keep your page introduction and the separate general-contact footer unchanged.
- Add just one Custom HTML block (or Divi Code module) and paste the entire code below, including the script. It automatically sizes the calculator and removes older calculator frames to prevent duplicates. Do not put it inside another fixed-height or scrollable container. Use an account allowed to save scripts; if WordPress strips the script, ask your site administrator to install it.
- Update the page. Clear the WordPress page cache and any CDN cache if they are enabled, then open the page in a fresh private browser window.
https://app-dbc2679c.vibe-app.ai/calculator?v=1.1
Check the public experience
- The WordPress page shows the calculator once, with a Version 1.1 badge. Remove any remaining empty calculator modules in the WordPress editor if they leave extra space.
- On desktop and mobile, change selections, expand options, and move between all three steps. The embed should grow and shrink with the content, without an inner calculator scrollbar, clipped content, or a large blank area below it.
- If the calculator still uses a fixed-height scrolling window, confirm the latest calculator is published and replace the entire old embed code, not just its address. Check that WordPress retained the script and clear any page cache.
- “Contact & download my plan” opens the supplied CRM form directly, without a preliminary contact form or “Edit my details” control.
- The complete plan downloads as a formatted PDF without filling in another form. Email it manually to Josh@MadPelicanMarketing.com.
- Submit a test lead and confirm receipt in Partner Center Contacts and Conversations. Neither a download nor displaying the form proves CRM delivery.
The dedicated address uses the current calculator; it is not a second contact step. Publication, WordPress replacement, downloads in the live iframe, and CRM delivery still require a live check.
