Change Height of friend referral section

Topic summary

Issue: The “Refer a Friend” form is hidden below the fold within its section, requiring users to scroll. The goal is to increase the section height so the full form is visible without scrolling.

Context and assets:

Proposed solutions (theme.css):

  • Add a CSS override to increase the iframe height:
    .homepage-section–friend-referal iframe#refcandy-candyjar { height: 900px !important; }
  • Alternatively, remove an existing restrictive rule: find and delete “height: 216 !important;” in theme.css (screenshot guidance provided).

Notes:

  • CSS (Cascading Style Sheets) controls styling; an iframe is an embedded external content frame. Increasing/removing a fixed height should reveal the full form without scrolling.

Status/outcome:

  • Actionable steps provided; no confirmation yet that the change resolved the issue. Discussion appears open pending user feedback.
Summarized with AI on December 15. AI used: gpt-5.

Hi, currently to get to the ‘Refer a Friend’ form on our site, the user has to scroll down in the section. Is there a way to extend the height of the section so the form is visible without scrolling?

Hi @TheGiftOfOil

Thanks for your question.

Can you share with me the URL of the page has form to check on it for you?

Thank you.

Hi @TheGiftOfOil ,

Please go to Actions > Edit code > Assets > theme.css file and paste this at the bottom of the file:

.homepage-section--friend-referal iframe#refcandy-candyjar {
    height: 900px !important;
}

These are two links to the page. One from the shopify editor and one from the normal site

https://admin.shopify.com/store/giftofoil/themes/125647061054/editor?customCss=true&previewPath=%2Fpages%2Frefer-a-friend

https://www.thegiftofoil.co.uk/pages/refer-a-friend

Hi @TheGiftOfOil

Thanks for sharing. You can follow the instruction to resolve the issue:

  1. Go to Shopify > Theme > Edit code > Navigate to theme.css file.

  2. Find the code line " height: 216 !important; " > then delete it. Screenshot

I hope it helps