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 well-designed image gallery can turn a simple Weebly website into a polished portfolio, online shop, travel journal or business showcase. The key is making the gallery adapt gracefully to phones, tablets and desktop screens instead of forcing visitors to pinch, zoom or wait for oversized image files.
Weebly provides useful building blocks, although its standard gallery options may feel restrictive when you need precise control over spacing, image ratios, captions or mobile behaviour. With a small amount of HTML and CSS, you can create a responsive image gallery that matches your branding and remains manageable through the Weebly editor.
Start by deciding what the gallery needs to achieve. A photographer in Melbourne may want large landscape images with short captions, while a handmade furniture business in Brisbane may need consistent product thumbnails and prices. A travel blog covering the Great Ocean Road could benefit from a mixture of wide scenic photographs and portrait-oriented mobile images.
Choose a consistent visual direction before uploading files. Decide whether your images will use square, landscape or naturally varying proportions. A uniform grid generally looks cleaner, while masonry-style layouts can suit editorial websites. For most Weebly projects, a tidy grid with equal-height thumbnails is easier to maintain and loads more predictably.
Prepare each image outside Weebly where possible. Crop unnecessary background detail, export in a suitable colour profile and use descriptive filenames such as sydney-harbour-sunset.webp rather than IMG_4832.jpg. WebP is a useful format for modern browsers, while JPEG remains practical for photographs and PNG works well when transparency is essential.
Image dimensions should reflect their display size. Uploading a 5,000-pixel photograph for a thumbnail that appears at 300 pixels wastes bandwidth, which can be particularly noticeable for visitors using mobile data while travelling between Sydney and regional New South Wales. Keep original high-resolution files elsewhere as a backup, then use web-ready copies in the gallery.
Open the relevant page in the Weebly editor and place an Embed Code element where the gallery should appear. You can then add a simple structure containing a wrapper, individual gallery items, links and images. The link allows visitors to open a larger version, while the alt text describes each image for screen readers and situations where an image cannot load.
A basic structure can look like this:
<div class="my-gallery">
<a class="gallery-item" href="images/sydney-harbour-large.jpg">
<img src="images/sydney-harbour-small.jpg"
alt="Sydney Harbour Bridge at sunset">
</a>
<a class="gallery-item" href="images/great-ocean-road-large.jpg">
<img src="images/great-ocean-road-small.jpg"
alt="Cliffs beside the Great Ocean Road">
</a>
<a class="gallery-item" href="images/perth-beach-large.jpg">
<img src="images/perth-beach-small.jpg"
alt="Quiet beach near Perth in Western Australia">
</a>
</div>
In practice, image URLs may be copied from files uploaded to Weebly or from another approved media location. Avoid changing filenames after publishing unless you update every corresponding link. If you prefer the regular Weebly Image element, you can still apply the same styling by adding a custom class to the surrounding section or using a distinctive wrapper selector.
The site background is useful to consider when deciding how much custom code to use. A small gallery can remain simple, but a large portfolio may benefit from a carefully organised pattern that separates image markup, visual styling and optional lightbox behaviour. Keeping those parts distinct makes future edits less frustrating.
Place the following CSS in the Embed Code element inside <style> tags, or add it through the theme’s Edit HTML/CSS area if your Weebly plan and theme allow it:
<style>
.my-gallery {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 18px;
margin: 30px 0;
}
.gallery-item {
display: block;
overflow: hidden;
border-radius: 8px;
background: #f1f1f1;
}
.gallery-item img {
display: block;
width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
transition: transform 0.25s ease, opacity 0.25s ease;
}
.gallery-item:hover img,
.gallery-item:focus img {
transform: scale(1.04);
opacity: 0.9;
}
@media (max-width: 900px) {
.my-gallery {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 600px) {
.my-gallery {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
}
</style>
CSS Grid allows the columns to change according to the available width. Four columns can work on a broad desktop screen, three columns suit a tablet, and two columns generally give mobile visitors a usable thumbnail size. If your photographs contain important edges, replace object-fit: cover with object-fit: contain, though this may leave empty space around images.
The aspect-ratio property prevents the page from jumping while images load. This improves the visual experience and helps visitors scan the page quickly. Rounded corners, hover enlargement and shadows should support the images rather than overpower them. A gallery for a professional service in Canberra may need a restrained appearance, while a creative portfolio can use stronger colour and movement.
Always test the gallery within the actual width of the Weebly content area. Some themes add internal padding, narrow text columns or mobile-specific rules that affect the result. If the grid appears cramped, reduce the number of desktop columns or use a wider section layout rather than forcing very small thumbnails.
Captions are valuable when an image carries information that is not obvious from the picture alone. Product galleries can show model names, dimensions or materials. A local restaurant might identify a seasonal dish, while a wedding photographer could display the location and event date. Use short, readable captions and avoid placing large blocks of text over busy photography.
You can add a caption inside each gallery item:
<a class="gallery-item" href="images/ceramics-large.jpg">
<img src="images/ceramics-small.jpg"
alt="Hand-thrown ceramic bowl in blue glaze">
<span class="gallery-caption">Blue-glazed serving bowl</span>
</a>
Then style it with a simple rule:
.gallery-caption {
display: block;
padding: 9px 10px;
color: #333;
background: #fff;
font-size: 0.9rem;
line-height: 1.35;
}
For a larger viewing experience, connect the thumbnails to a lightbox tool or a suitable Weebly gallery app. Check whether the tool supports keyboard navigation, visible close controls, focus management and touch gestures before installing it. A flashy overlay that traps keyboard users or hides the close button on an iPhone creates a poor experience.
You can also keep the gallery lightweight by opening the larger file in a new browser view, although this is less elegant than a true lightbox. Avoid adding several scripts that perform similar tasks. Extra plugins can conflict with a Weebly theme, slow the page and create unexpected behaviour after platform updates.
Responsive design involves more than shrinking a desktop layout. Every image needs useful alternative text. Describe the subject and meaningful context, such as “yellow tram on Melbourne street” rather than “photo 4”. If an image is purely decorative, use an empty alt="" attribute so screen readers can skip it.
Make sure links and controls have visible focus states. The gallery should be usable with a keyboard, and text should retain sufficient contrast against its background. Do not rely on colour alone to communicate product availability, category or image status. These details help visitors with disabilities and make the interface clearer for everyone.
Lazy loading can reduce the initial page weight:
<img src="images/brisbane-market-small.webp"
alt="Fresh produce stall at a Brisbane market"
loading="lazy"
width="800"
height="600">
Adding width and height helps the browser reserve space before the image arrives. Lazy loading is most useful for images below the first screen, so the first one or two visible images can load normally when appropriate. Compress files before uploading, and avoid placing dozens of full-resolution photographs on one page.
Australian visitors may browse from a fast NBN connection at home, a busy café network in Adelaide or a mobile connection while attending an event. Designing for varied connection quality gives the gallery a wider margin for reliable performance. A local online shop also benefits from quick product browsing because shoppers often compare several items before contacting the business.
Preview the page at desktop, tablet and mobile widths, then use real devices where possible. Browser developer tools are useful, but a physical Android phone and an iPhone can reveal differences in tap targets, image rendering and scrolling. Check that thumbnails do not become too small and that captions do not wrap into awkward blocks.
Test portrait and landscape orientation. A two-column mobile grid may look balanced in portrait mode but leave overly wide gaps in landscape mode. If the gallery contains portrait images, verify that faces, products and important details are not cropped by object-fit: cover. You may need separate image crops for different content categories.
Check the gallery in Safari, Chrome and Firefox, especially if your audience includes visitors across Australia’s varied devices. Open every enlarged image, test the back button and confirm that broken links are not hidden behind a visual effect. Review the page on a slow connection to identify files that need compression.
Keep the content fresh and organised after launch. A Sydney property photographer might archive older shoots into separate galleries, while a regional tourism site may update seasonal images for winter, spring or holiday periods. Add descriptive headings around groups of images and update alt text when an image’s purpose changes.
The My Weebly Tricks resource can provide further ideas for custom effects, widgets and practical Weebly adjustments. Use outside examples as inspiration, then adapt the design to your own brand, audience and content rather than copying every decorative effect.
A responsive gallery works best when the code, image files and content all receive regular attention. Build a small version first, test it on phones and desktops, then expand it once the layout performs reliably. Add your chosen images, refine the captions and publish a gallery that makes browsing easy for visitors anywhere in Australia.
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.