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 native blog page is excellent for a chronological stream of updates, but it can make visitors work hard when they want a particular tutorial or template. A card-based layout changes that experience: readers can scan the whole library, recognise useful posts at a glance and narrow the collection without opening every entry.
To create a blog post grid with filters in Weebly, combine a small HTML card structure with CSS Grid and a short JavaScript routine. Each card carries one or more category labels, while filter buttons show or hide matching cards instantly in the browser. The result feels like a resource library rather than a conventional archive.
This is especially useful for design tutorials, template round-ups and business resources. Australian readers might look for material relevant to Sydney, Melbourne, Brisbane or Perth, while owners of small businesses may also search by budget, service or software. Filters work best when they reflect those genuine differences.
The method needs no paid Weebly app. It does require access to an Embed Code element and careful testing in the published site, because the editor preview can differ from the final theme. Build the grid on a separate page first, keep the native blog available and only connect the two once every card behaves correctly.
Start with the decisions a visitor is trying to make, not with a decorative list of buttons. “All posts” should lead to a general view, followed by four to six meaningful choices such as Templates, Customisation, E-commerce and Local resources. If most articles serve one audience, three filters will be clearer than a crowded toolbar.
Use the same taxonomy as your editorial plan. A post about a responsive florist template could belong to Templates and Local resources, so allow multiple words in each card’s category field. Readers should not have to guess whether a city article also appears under Small business. Decide which labels are visible on cards and which exist only to drive filtering.
Before writing markup, list ten recent posts and identify the fields readers need: title, image, short summary, category, date and a clear link to the full article. In Australia, display dates as DD/MM/YYYY and prices as A$, stating whether GST is included where relevant. Australian English and local place names also help the content feel native rather than translated.
On a new Weebly page, add an Embed Code element and place the grid markup inside it. Use each post’s real destination rather than linking to an image or an empty placeholder. A simple card can begin like this:
<div class="filter-grid" data-filter-grid>
<article class="filter-card" data-categories="templates local">
<a href="/your-post-url">
<img src="/image.jpg" alt="Responsive florist website template">
</a>
<p class="filter-card-category">Templates</p>
<h2>
<a href="/your-post-url">Build a polished local business site</a>
</h2>
<time datetime="2025-03-08">08/03/2025</time>
<p>A practical walkthrough for a mobile-first Weebly layout.</p>
</article>
</div>
The data-categories value is the key. Its space-separated words must match the filter values used later, and the prefix filter- keeps your CSS from colliding with theme styles. The image alt should describe the tutorial, while the heading and link provide a text-based route for anyone who cannot use the image.
Replace the sample paths and summaries with your own content. If you need more visual ideas before finalising the layout, Weebly design resources can help you compare widget and presentation options without changing the underlying method.
Use CSS Grid rather than a fixed three-column table. It responds cleanly when space narrows, and auto-fit removes empty columns on smaller devices. Scope every selector to filter- classes so the theme’s own blog and navigation styles remain untouched.
.filter-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 24px;
}
.filter-card {
padding: 18px;
border: 1px solid #ddd;
border-radius: 8px;
background: #fff;
}
.filter-card[hidden] {
display: none;
}
.filter-card img {
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
}
.filter-controls {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 24px;
}
.filter-controls button.is-active {
font-weight: bold;
}
Set sensible image dimensions or aspect ratios to prevent content jumping while pictures load. Use padding, readable line height and a clear hover or focus treatment on links. Keep card heights flexible; forcing every card to match can create awkward gaps when Australian business posts have very different excerpt lengths.
On phones, one column usually beats a shrunken multi-column layout. Two columns can work for short template cards on wider screens, but check narrow phones, tablets and desktop widths. If you add animation, respect the visitor’s reduced-motion preference and never let movement delay access to a post.
Place the controls above the grid as real buttons. A button communicates an immediate in-page action, whereas links may imply navigation to another URL. Give each control a matching data-filter-button value and use aria-pressed to expose its current state.
<div class="filter-controls" role="group" aria-label="Filter blog posts">
<button type="button" data-filter-button="all" aria-pressed="true">
All posts
</button>
<button type="button" data-filter-button="templates" aria-pressed="false">
Templates
</button>
<button type="button" data-filter-button="customisation" aria-pressed="false">
Customisation
</button>
<button type="button" data-filter-button="business" aria-pressed="false">
Business
</button>
</div>
<p class="filter-status" data-filter-status aria-live="polite"></p>
<p data-filter-empty hidden>No posts match that filter yet.</p>
Add the JavaScript immediately after the grid and controls in the embed, or in another Embed Code element below them:
const grid = document.querySelector("[data-filter-grid]");
const cards = [...grid.querySelectorAll("[data-categories]")];
const buttons = [...document.querySelectorAll("[data-filter-button]")];
const status = document.querySelector("[data-filter-status]");
const empty = document.querySelector("[data-filter-empty]");
buttons.forEach(button => {
button.addEventListener("click", () => {
const selected = button.dataset.filterButton;
let visible = 0;
cards.forEach(card => {
const categories = card.dataset.categories.split(" ");
const show = selected === "all" || categories.includes(selected);
card.hidden = !show;
if (show) visible += 1;
});
buttons.forEach(item => {
const active = item.dataset.filterButton === selected;
item.classList.toggle("is-active", active);
item.setAttribute("aria-pressed", String(active));
});
empty.hidden = visible !== 0;
status.textContent =
`${visible} post${visible === 1 ? "" : "s"} shown.`;
});
});
The script compares the chosen value with each card’s category words. Setting the hidden attribute removes non-matching cards from both the page and the accessibility tree, which is cleaner than making them transparent. The active class provides the visible colour change, while the live status tells screen-reader users how many posts remain.
One active filter at a time is the simplest reliable model. To add combinations, store every button state in an object and decide whether multiple selections should use AND or OR logic; otherwise, a card with two selected labels can behave unexpectedly. Include a visible empty-state message in case no posts match, and make “All posts” restore the complete collection.
Decide how new posts enter the grid. A small site can maintain a few hand-written cards and benefit from precise summaries, but manual updating becomes tiring after the archive grows. A larger site can generate static card HTML through a scheduled tool or an RSS-to-JSON workflow with an approved cross-origin setup.
Whichever route you choose, keep the title, URL, category and date in sync with the original article. Avoid copying the complete post into the card, because duplicate text can make the page confusing for readers and search engines. Link to the canonical Weebly post and let the full article carry the detailed explanation.
If your posts contain client feedback, a small trust cue can sit beside the title or excerpt. This review stars guide explains one way to add ratings, helping a visitor judge a case study before opening it. The rating should support the content rather than distract from the filter controls or imply endorsements the business has not received.
Test the grid with a keyboard before launch. Tab through the filters, activate each one with Space or Enter, and confirm that focus remains obvious. Check that hidden cards cannot receive focus and that the status message is announced politely rather than interrupting the visitor. The controls should also work with touch, mouse and common screen readers.
Check performance on a real mobile connection, not only in the editor. Compress card images, use appropriately sized assets, reserve space for each image and lazy-load content below the first row. Avoid loading a large filtering library when a short script handles the requirement, since every additional request can delay the first usable set of cards.
Filters that appear only after JavaScript runs do not create separate indexable archive pages. If a category is important for discovery, link it to a real Weebly category page or build a dedicated, crawlable resource page. The Google Discover guide provides a useful checklist for the publishing signals and content structure that still matter behind the visual grid.
Launch the grid on its own clearly named page, such as Resources or Blog Library, and place it in the main navigation. Add a link from the native blog so readers can move between chronological updates and the filtered view. Keep both experiences: the stream answers “what is new?”, while the grid answers “which article solves my task?”
Watch analytics after release. Record clicks on filter buttons, clicks on individual cards and searches that lead to no visible results. If many visitors choose one category repeatedly, make it easier to find; if they ignore a filter, revise its label or remove it. Australian businesses often see traffic outside standard working hours, so compare days and local evening results rather than judging an early total.
Create the page today, add three filters based on your most common reader needs, publish ten strong post cards and test the result on a phone before sharing it. Then point visitors from every important article to the grid and invite them to choose a topic that solves their next Weebly task.
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.