Weebly Tricks #84 — ClassyCountdown Timer
Add a clean countdown timer to your Weebly site, created by Marius Stanciu.
Learn how to customize and modify your Weebly site with new effects, plugins, and widgets.
Welcome to My Weebly Tricks, a resource for Weebly site owners who want to go beyond the basics. Here you'll find step-by-step guides on adding image effects, slideshows, navigation scripts, text animations, countdown timers, and more — all tailored for the Weebly platform.
A newsletter opt-in popup can turn casual visitors into subscribers by giving them a reason to share an email address. For a Weebly shop, service business or blog, pair a short form with a genuine benefit: 10% off a first order, a free guide or free shipping. A relevant, easy-to-redeem reward makes signup a useful exchange rather than a demand.
This guide explains how to build a newsletter opt-in popup with a discount code using an email platform, custom code and a small amount of JavaScript. It also covers Australian wording, consent, accessibility, testing and the measures that reveal whether the offer generates profitable subscribers.
Begin with one benefit connected to what the visitor is about to do. “Get 10% off your first order” suits an online store, while “join the list for a free buying guide” works better for a blog. Avoid a vague promise such as “exclusive offers.” State the value plainly, show when it expires and explain how the reward will be delivered. A precise offer gives people a reason to act without relying on false urgency.
For an Australian audience, quote the saving in Australian dollars and make its worth clear. An A$15 credit can feel more useful than 10% on a lower-priced product. If displayed prices include GST, mention that the discount applies before shipping rather than making tax part of the main message. Test A$10 and A$15 offers against your average order value and profit margin.
Decide whether the code is sent automatically after signup or displayed immediately. Automatic delivery works well when your platform creates a unique voucher, while a fixed code such as WELCOME10 is simpler for a small store. State whether customers can use it once, whether it stacks with other promotions and which products are excluded. Clear conditions prevent support requests and keep the advertised reward trustworthy.
Before writing the popup, identify the action you want from each type of visitor. A customer browsing products may respond to a first-order saving, while someone reading a tutorial may prefer a checklist or early access. Current small business research can help you compare broader marketing patterns, but use your own sales, search terms and customer questions to decide what deserves prominence in the signup box.
Keep the copy conversational and Australian without leaning too heavily on slang. Phrases such as “Join the list,” “Save your spot” or “Get the good stuff” can feel friendly, while “no worries, you can unsubscribe anytime” offers reassurance. Write in Australian English, using words such as “colour,” “favourite” and “organise.” Offer a clear benefit, a labelled email field and one button with action-focused text such as “Send my code.”
Use plain English for the permission statement: “I agree to receive [newsletter name] by email. I can unsubscribe at any time.” The Privacy Act 1988 and Australian Privacy Principles may apply to customer information, while commercial electronic messages are regulated by the Spam Act 2003. Link your privacy policy beside the form so visitors can review the terms before consenting.
Choose an email service provider that supports the fields, confirmation options and discount delivery you need. Mailchimp, Klaviyo, ConvertKit and similar platforms can manage subscriber lists, while a Weebly-native form may suit a simple audience. A consistent branded sender address improves recognition and deliverability. If you also need a business mailbox, this two-month email offer explains a hosting promotion; check its current terms before relying on it.
Create the audience and form in your email platform first, then copy its form action URL and field names into Weebly. The action may resemble an endpoint on your provider’s domain, but its structure varies between services. Use double opt-in when appropriate, test every confirmation email and ensure the discount arrives after the subscriber confirms. A welcome email can contain the voucher, or the popup can show it on the provider’s thank-you page.
Send a test signup from a personal address and complete the journey on a phone. Check the subscriber source, confirmation message, code and welcome sequence. Record consent, signup time and campaign source so you can distinguish a genuine subscriber from a duplicate entry. If you already have strong email deliverability, preserve its domain authentication rather than replacing it with an untested address.
Weebly gives you room to add the form and behaviour through an HTML block. The custom ads HTML block method is useful here because the same custom-content area can hold the popup markup, styling and script. Test a copy of the site first, publish the block where you want the code to run and avoid inserting it twice, which could create duplicate dialogs and conflicting timers.
The following example creates an overlay, labelled email field, consent checkbox, discount field and timed trigger. Replace the form action with the endpoint supplied by your email platform, and change EMAIL or DISCOUNT_CODE if the provider uses different field names.
<style>
.popup {position:fixed; inset:0; display:grid; place-items:center; background:#0008; z-index:9999;}
.popup[hidden] {display:none;}
.popup > div {max-width:420px; padding:24px; background:#fff;}
.close {float:right;}
</style>
<button class="open-popup" type="button">Get 10% off</button>
<div id="newsletter-popup" class="popup" hidden>
<div role="dialog" aria-modal="true" aria-labelledby="popup-title">
<button class="close" type="button" aria-label="Close popup">Close</button>
<h2 id="popup-title">Take 10% off your first order</h2>
<p>Join the list and we’ll send your code.</p>
<form action="REPLACE_WITH_ESP_FORM_URL" method="post">
<label for="popup-email">Email address</label>
<input id="popup-email" name="EMAIL" type="email" required>
<label><input type="checkbox" name="CONSENT" required> I agree to receive emails.</label>
<input type="hidden" name="DISCOUNT_CODE" value="WELCOME10">
<button type="submit">Send my code</button>
</form>
</div>
</div>
<script>
const popup = document.getElementById("newsletter-popup");
const email = document.getElementById("popup-email");
let previousFocus;
const open = () => {
if (sessionStorage.getItem("popup-shown")) return;
sessionStorage.setItem("popup-shown", "1");
previousFocus = document.activeElement;
popup.hidden = false;
email.focus();
};
const close = () => {
popup.hidden = true;
if (previousFocus) previousFocus.focus();
};
document.querySelector(".open-popup").addEventListener("click", open);
document.querySelector(".close").addEventListener("click", close);
document.addEventListener("keydown", event => {
if (event.key === "Escape" && !popup.hidden) close();
});
window.addEventListener("scroll", () => {
if ((window.scrollY + window.innerHeight) / document.documentElement.scrollHeight > 0.55) open();
}, {once: true});
setTimeout(open, 35000);
</script>
Place the example in a Weebly HTML block and adjust the colours and copy to match your site. Keep the popup above the navigation and retain a visible “Close” control. If your email platform cannot accept a discount field, generate the voucher in its welcome automation and remove the hidden field. The journey should run from popup to inbox to usable code, not merely capture an address.
Choose the trigger to match the buying journey. A delay of about 30 to 45 seconds lets visitors see the page first, while a prompt after they have read half of a long article can work better. On mobile, avoid relying on cursor movement to detect an exit attempt; scrolling, a fixed “Get 10% off” button and a relevant click are more dependable. Store the dismissal in session storage so the same person is not asked twice during that visit.
Treat accessibility as part of the popup. Use a real heading, associate visible labels with inputs and give the close control a text label. Trap focus while the dialog is open, allow keyboard users to reach every control and return focus to the trigger after closing. Maintain strong colour contrast, respect reduced-motion settings and keep the form usable at high zoom. Screen-reader users should hear the offer and form purpose without searching for them.
Frequency controls should reflect real behaviour. Someone who ignored the offer may welcome a reminder later, while a subscriber should never see the signup popup again. Use local storage with an expiry if you want to wait several days before asking again, and suppress the popup for known subscribers when your platform permits. This matters for regional Australian visitors on slower mobile connections, where a heavy popup can make browsing feel clumsy.
Track more than email opens. Define the primary conversion as a completed, confirmed signup, then monitor popup views, form starts, valid submissions, confirmations and discount redemptions. Add a source or medium to the signup link or hidden field so popup traffic can be separated from other campaigns. Compare redemption revenue with the margin the offer costs. A 10% discount that produces repeat purchases may be worth more than one with fewer signups.
Test one meaningful variable at a time: the incentive, headline, button text, trigger or layout. Keep the rest stable long enough to interpret the result, and compare results by device because mobile behaviour often differs. Ask for no extra fields until you know they improve targeting, since every additional question can reduce completion. Treat a small sample as directional rather than conclusive and avoid changing the offer during a major campaign.
Plan campaigns around the Australian retail calendar. Australia Day promotions may suit a January reset, EOFY messaging can appeal to small business owners, and pre-Christmas shipping offers work well for physical products. Schedule from Sydney while accounting for Melbourne’s daylight-saving shift and Brisbane’s fixed time, and remember that Perth and Darwin sit further behind. These occasions should support the core offer rather than become a confusing series of unrelated discounts.
Create the offer, connect a tested email platform and insert one carefully styled popup into your Weebly site. Use a clear Australian-dollar value, transparent consent and a frictionless mobile form so the exchange feels fair to every visitor.
Launch with one measurable goal: confirmed subscribers who use the code. Review the full signup-to-redemption path after the first campaign, then scale the version that produces profitable repeat business.
Add a clean countdown timer to your Weebly site, created by Marius Stanciu.
A comparison of free and paid email accounts and the advantages of using a domain-based custom email.
Instructions on setting a free custom email address for your website within Weebly.
Configure your Weebly RSS feed so visitors can subscribe and receive email updates.
Details on a promotional offer for two months of free email hosting from Namecheap.
Subscribe for regular email updates and get access to new Weebly tips and tutorials.