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.
Weebly's background picker offers solid colours, uploaded photographs and repeating patterns, which is plenty for getting a page looking tidy. What it doesn't offer is a true multi-stop gradient, the kind that fades one shade into another across a hero banner, a service block or a footer. That request comes up constantly from site owners in Melbourne and Sydney who want depth behind their text without dropping a two-megabyte photograph onto the server.
The good news is that gradients are pure CSS, they weigh almost nothing, and you can attach one to any section in a matter of minutes. In this guide you'll pick a colour pair that suits an Australian audience, work out which section you are actually editing, write the CSS in Weebly's custom code area, and then tune the angle and colour stops until the panel looks right on a phone screen.
A flat block of colour reads as a rectangle. Add a gradient and the same block gains direction and light, so the eye travels across the headline instead of stopping dead at the edge of a colour change. For a coffee roaster in Collingwood selling single-origin beans, or an estate agent in Bondi promoting a suburb guide, that subtle movement does more work than a decorative stock photo of mountains and gum trees that every competitor is already using.
Gradients also cut your page weight dramatically. A full-width background image at 1920 pixels wide can easily land above 800KB, and plenty of regional Australian visitors on fixed-line NBN plans or capped mobile data in Perth and Adelaide will notice the delay. A CSS gradient is generated in the browser from a few lines of code, so the page loads as fast as the rest of your Weebly site and there is nothing extra to compress, resize or maintain.
There is a practical limit worth remembering. A gradient is decoration, and decoration behind text can wreck readability if the two ends of the fade are too different in brightness. The trick is to keep the colours related, keep the contrast between them modest, and give the text a solid home, whether that means a semi-transparent overlay, a text shadow, or restricting the gradient to the top of the section where the headline sits.
Australian light is unusually punishing. The sun over Bondi Beach at midday is bright and almost colourless, while the golden hour rolling across the Adelaide Hills turns everything amber. A gradient that looked calm on a screen in a dim office can look garish on a phone held outdoors. Start with colours that feel at home in the landscape: deep ocean blues, eucalyptus greens, sandstone and terracotta, warm sand, and the particular navy of a clear winter sky over the Heads.
Brand colour is usually a better anchor than a generic palette. If your business identity already carries a primary and a secondary colour, blend those two and skip the rest. Type both into a hex picker, then check the contrast between the background and your body text. Public sector and government sites in Australia are expected to meet WCAG 2.1 AA under the Australian Government Digital Service Standard, and good practice spreads well beyond that. A contrast ratio of at least 4.5 to 1 for normal text keeps you on the right side of the guidance, and an online contrast checker will tell you in seconds whether your pair passes.
Think about your market too. Australians tend to respond to straightforward, unfussy design, and the local small business market is crowded with sites fighting for attention. A restrained two-tone gradient reads as considered rather than showy. Use a third shade only if you want to place a deliberate accent band, and keep the whole thing to two or three stops so it stays subtle on the smaller screens that carry most of your traffic.
Every Weebly section carries a unique identifier, usually a string of letters and numbers like u12345678, and each one also gets its own class in the generated page. In the editor, click the section you want to change, open its background panel and choose a colour so you can see the area you are working with. Then open the page source in your browser, search for that section's identifier, and note it down. You can also give a section a custom anchor from the advanced section settings if your plan allows it, which makes the CSS far easier to read later.
Before you write any code, decide how many sections get a gradient. One hero panel is usually plenty. Applying the same treatment to every band of the page flattens the hierarchy and makes the site tiring to scroll. If you want continuity, build a separate gradient for the footer and change the angle or the colour order slightly so the two areas feel related without being identical.
If you would rather begin from a finished layout than from a blank Weebly template, the themes by Jordi Miró give you a polished structure with sections already in place. Swap the flat background of the panel you like for a gradient and the whole page takes on a new depth without any restructuring.
Open the Theme Editor, scroll down to the Head section of your theme and add a custom code block. Weebly Pro and Studio plans expose this area, and the same code can also be pasted into the custom CSS panel under Theme and Advanced if you prefer to keep styles separate from scripts. Whichever route you choose, the CSS below targets a section by its identifier.
/* Gradient background for the hero section */
#u12345678 {
background-color: #102a43;
background-image: linear-gradient(135deg, #102a43 0%, #1f6f78 52%, #f4a261 100%) !important;
background-repeat: no-repeat;
background-size: cover;
}
The background-color line is your safety net. If a browser ignores the gradient for any reason, the section still shows a solid colour that sits close to the darkest stop, so your text remains readable. The !important flag matters because Weebly writes its own background declarations into the section, and without it your rule can be quietly overruled.
If you would rather attach the gradient to something reusable, add a class to the section instead of relying on the identifier, then style it like this:
.section.soft-gradient {
background-color: #1f6f78;
background-image: linear-gradient(160deg, #e8f1f5 0%, #a9c6d8 60%, #f4a261 100%) !important;
}
Both approaches work. Identifiers are more precise, while a named class survives a theme change and keeps your stylesheet tidy when you are juggling five sections at once.
The angle in linear-gradient decides the direction of the fade, measured in degrees from straight up. Zero runs from top to bottom, 90 degrees runs from left to right, and 135 degrees produces the classic diagonal. Diagonals of 120 to 150 degrees suit wide hero panels because they suggest sunlight entering from a corner. Gentle vertical gradients of 180 degrees look calmer and work well behind long blocks of text.
Colour stops are the percentages between each bracket. Writing 0%, 52% and 100% puts the middle colour slightly past halfway, which gives the second shade more room to breathe. If the two ends sit too close in tone the effect vanishes, and if they sit too far apart the text becomes unreadable at one edge. Move the stops a few percentage points at a time rather than guessing a whole new palette.
Phones need their own pass. Weebly stacks your sections on narrow screens and the background follows the new height, so a gradient that looked balanced on a wide desktop can stretch into an almost solid block of colour on a phone held upright in a queue at Melbourne Central. Check the panel on a real device with mobile data rather than office Wi-Fi, and look at how it behaves when the text wraps to three lines. If the heading shifts the middle of the gradient too far down, tighten the stops or shorten the heading so the composition holds together at any width.
If nothing changes after you publish, the section identifier in your CSS is the first thing to check. A single wrong digit means the rule matches nothing and the page keeps Weebly's original background. Confirm the identifier in the page source again, and remember that the code must be added to the theme, saved, and then published. Editing the site's live pages without republishing leaves the old version serving to visitors.
Other culprits include a background image that was set on the section in the editor. An uploaded photograph sits above a CSS gradient in the background shorthand, so remove the image from the section's background panel and set a solid colour there instead. On some themes a white inner container sits on top of the section background, which hides the gradient completely, and that container needs its own transparent background rule. In Safari, the fixed attachment option behaves poorly on iOS, so avoid background-attachment: fixed if you want consistent results across devices.
Legibility is the last thing to sort. If text sits directly over the brightest part of the fade, lay a soft dark panel behind it using a semi-transparent colour such as rgba(16, 42, 67, 0.55), or push the gradient into the lower half of the section so the headline sits on solid colour. Test every section on a laptop in bright daylight and on a phone outdoors, because a gradient that passes the contrast checker can still fail in real Australian sun.
Once the gradient sits behind your hero panel, the same technique applies to contact sections, pricing tables and footers across any Weebly site, and you can vary the angle to keep each area distinct. Keep a note of the colour codes and the section identifiers somewhere you will find them again, such as your site's own notes page or a document in Google Drive shared with your designer.
To pick up more Weebly styling tricks as they are published, activate your subscription and new guides will arrive in your inbox. Under the Australian Spam Act 2003 and the Privacy Act 1988, list building deserves a clear sign-up form, an obvious unsubscribe link and an honest description of what subscribers will receive, which keeps your list compliant and your subscribers genuinely happy to hear from you.
Pick one section of your site today, choose two colours you already trust, and paste the CSS. Within ten minutes you will have the polished, depth-filled background that Weebly's own picker never quite offered.
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.