top of page
bottom of page
SMARTER ENTREPRENEURS - AUTO-RESIZING EMBED SNIPPET ===================================================== WHERE TO PUT IT (once, covers all five embeds): 1. Wix Dashboard > Settings > Custom Code (under Advanced). 2. Click "+ Add Custom Code". 3. Paste everything between the START/END lines below. 4. Name it "Embed auto-resize", apply to All Pages (or just the pages with assessments), place in Body - end. Save & publish. ----- START: copy from the line below ----- ----- END: copy up to the line above ----- NOTES - Re-upload the five embed files first (they now report their own height); the old copies do not. - You can now remove the per-breakpoint manual heights: give the HTML element any small starting height and it will grow to fit on every screen size. - In the classic Wix editor, elements are pinned in place, so give the embed its own strip or section so growth does not overlap content below it. - The embed grows to fit but will not shrink below the height you set in the editor, so start it small (e.g. 400px). - Deep links: the snippet also passes the page URL's query string to the embeds, so a link like /self-assessment?stage=qualification opens the quiz directly at that stage. Accepted values: strategic, attract, qualification, nurturing, conversion, retention, growth, advocacy, or 1-8. If you already pasted an older version of this snippet, replace it with this one.