Overview
TitleSparks draws a visual marker beside the titles of the posts you choose — an icon, an image or an animated GIF — and lets that marker change on a schedule.
Each post carries its own timeline of up to three stages, each with its own asset, position and expiry, so a “New” badge can hand over to a quieter icon and then disappear without the post being edited again.
The same icon follows the title wherever that title is printed: the post itself, an archive card, a sidebar’s latest-posts list, and the previous and next links that point at it. The title text itself is never rewritten — the icon is placed beside it in the browser, after the page has loaded — so search engines, excerpts and feeds see exactly the title you wrote.
What it does
- One shared library of assets; every post picks from it and keeps its own timeline
- Up to three stages per post, each with its own asset, position, size and expiry
- A live icon beside the real title in the block editor, plus a classic-editor meta box
- Every copy of the title decorated — post page, homepage cards, archives, search, widget lists, related-stories rails and the previous/next links
- Placement measured against the title’s real type, with per-stage offsets and horizontal mirroring
- Icon sizing that can follow the heading size, with a site-wide table and per-stage overrides
- Separate display switches for post pages, the homepage, archives and search, with per-post overrides
- Icon switches for every theme area the deep scan finds, and for every active widget instance
- A still frame for readers who ask for less motion, and complete cleanup on uninstall
Requirements
| Requirement | Minimum | Notes |
|---|---|---|
| WordPress | 6.6 | Tested to 7.1. Classic and block themes both work. |
| PHP | 7.4 | Newer versions are fine. |
| Licence | GPLv2 or later | Free to install, fork and adapt. |
| Editor bundle | — | Shipped compiled in the release. If the admin says the bundle is missing, the plugin folder was copied without it. |
Nothing else is required: no cron, no external service, no account. The only network request the plugin makes is the one your own media library already makes for the image files you upload.
Installation
-
Install the plugin through Plugins → Add New, or upload
titlesparks.zipwith Upload Plugin. - Activate TitleSparks on the Plugins screen.
- Open TitleSparks in the administration menu — that is where the library, the settings and the guide live.
- Edit a supported post and give it its own timeline in the sidebar.
The plugin adds nothing to the front end until a post has an icon to show, apart from one small stylesheet.
After activation
Four short decisions, all on the settings screen, get the plugin ready:
- Switch TitleSparks on. Post titles only show a decaying icon while this is on — it is the master switch.
- Tick the post types that may carry icons. Anything unticked never shows one, whatever a post’s timeline says.
- Choose where icons may appear — post pages, archives and categories, the homepage, search results, and the theme areas and widget instances the deep scan found.
- Set the timeline start, and the defaults a new post inherits: position, stage durations and what happens after stage 3.
Then add your first asset on the Library tab and give a post a timeline. Nothing appears on the front end for a post whose timeline has not been saved.
The settings screen
The TitleSparks screen has three tabs: Library (the shared assets), Settings (the defaults below) and Guide (the same explanation, inside the admin). Changes are held until you press Save; the header tells you whether there are unsaved changes.
Defaults, not rules. Everything on the Settings tab is what a new post starts from. A post’s own timeline always wins, and every value stays editable in the editor.
Enable TitleSparks
The master switch. While it is off, no title anywhere shows an icon and every timeline is preserved untouched, so switching it back on restores exactly what you had.
Default Settings
These are used for new posts unless overridden in the block editor: the position, the stage durations, the size, and the final action.
Enable TitleSparks
Post titles only show a decaying icon while this is on.
Timeline starts
One moment for the whole site, or the post’s own publish date — see Where a timeline starts.
Default Position
- Icon lines up with — the first line, the last line, or the middle of the whole title.
- Space beside the icon — the standard gap, or flush against the words.
- Respect reduced motion — draw a still frame of animated GIFs for readers who ask for less motion. On by default.
- Fit icons inside tight cards — shrink an icon that a card would clip, down to 8px. Off by default.
- Title size → icon size — the site-wide table used when a stage follows the title’s size.
- Icon stacking order — the icon’s z-index, for themes that stack ribbons or overlays over the heading.
Supported post types
Titles only get icons on the post types you tick. Untick everything and the plugin still works, but no editor shows the timeline sidebar, which is a quick way to pause the whole feature without losing any saved timeline.
Custom post types that are registered as public and support titles appear in the list automatically.
Where icons appear
Display is decided in two layers: site-wide switches, then an optional per-post override.
Post pages
The icon beside the article title itself, at the size and position that post’s own timeline asks for.
Homepage listings and sliders
Every copy of a title is decorated — homepage cards, sliders and featured sections — and each card’s icon is sized from that card title’s own size rather than the article’s.
Archives and categories
Archive cards, category and tag listings, author archives and search results each have their own switch, so you can decorate a blog index without touching the post pages.
Theme areas and widgets
A deep scan reads your theme templates, your posts and pages, and your widgets, then lists every area that can show a title — a sidebar’s latest-posts list, a related-stories rail, a footer’s recent posts. Each area has its own switch, and each names the pages it appears on. Every active widget instance gets a switch too, named after the sidebar it sits in.
If the list is empty, add a widget or put a post-list block on a page, then press Deep scan to look again.
Per post
Each supported post can override the site’s answer for the post page, homepage and the widget area: Use site setting follows the default, Show and Hide override it for that post only.
Where a timeline starts
One choice for the whole site, on the Settings tab. Every date and time in the plugin is the site’s clock, not the visitor’s, so a post published in Lagos changes at the same moment everywhere.
- The post’s publish date — the default. A post published at 09:00 starts counting at 09:00, so every post ages at its own pace.
- A date and time you choose — every post counts from the same moment, whatever its publish date. Useful for a launch, a season or an event.
A post saved before this setting existed keeps the anchor it has, so its timeline does not jump when you change the site’s answer.
After stage 3
The last stage always ends; what happens next is your choice, either site-wide or per post.
- Keep the last icon forever — the post keeps its final marker, which is what most “news” badges actually want.
- Remove the icon — the title returns to plain text once the last stage expires.
The three stages
Stages run one after another, never at the same time. Each title shows one icon at a time, and each stage carries its own asset and settings:
| Stage | Role | Example |
|---|---|---|
| Stage 1 | The freshest marker | An animated “News” GIF |
| Stage 2 | The quieter hand-over | “Hot News Today” |
| Stage 3 | The last marker, or none | A small static icon, then the final action |
Per stage you choose: the asset, the position, the duration and unit, the icon size (or a sizing table), any offsets, and whether that stage’s icon is mirrored. A stage with no asset shows nothing, and its length still counts — clearing the end date is how you use two icons instead of three.
Nothing is applied until you save. The editor draws a preview from the unsaved timeline; the live title keeps the last saved stages until you press Update.
Durations and end dates
In the editor each stage ends on a date and time you pick. That end is also its length, measured from where the stage starts — so you can think in either direction and the other follows.
Durations are entered in days, hours or minutes, and stored as lengths rather than fixed dates in the defaults, because a post that does not exist yet has no date of its own to count from.
Skipping a stage
Clear a stage’s End field and that stage ends when the one before it does, so it never shows. That is the intended way to use two icons rather than three.
The editor sidebar
The block editor sidebar shows the whole timeline while you write, and reports what is live right now:
- On live: stage 1 · ends 12 Nov · 6 days — the stage a reader sees at this moment
- Stage 2 is shown permanently — the final stage with “keep forever” chosen
- Expired — no icon is shown — every stage has ended and the icon was removed
- Nothing live on the title — no stage is active yet
- Switched off site-wide — the master switch is off, so the timeline is kept but not drawn
The canvas draws the real icon beside the real title, so you see the result while you write rather than after you publish.
Classic editor
Sites still on the classic editor get the same timeline in a meta box called Title Icon Decay Timeline, with the same stages, asset picker, position and durations. The live preview is a block-editor feature; the classic box tells you the stage’s state in words instead.
Asset library
One library of GIFs, icons and images that every post can use. A post never copies a file — it points at a library asset, so replacing the artwork in one place updates every timeline that uses it.
- Label — the name in the picker, and the icon’s alt text on the page.
- Tags — what puts an asset into a folder.
- Display size and unit — the size a stage uses when it leaves its own Size field blank.
- Type filters and search — GIFs, icons and images, plus a search over names and tags.
Files live in the WordPress media library, so they are backed up, optimised and cleaned up exactly like the rest of your images.
Folders and tags
A folder is a name plus the tags it collects. An asset joins the folder as soon as it carries one of those tags, so nothing has to be filed by hand and an asset can sit in several folders at once. A folder with no tags is empty — that is the only way to have an empty folder.
Deleting a folder never deletes assets: they and their tags stay in the library, and only the folder goes.
Adding an asset
- Press Add New Asset and pick the file in the media library — or upload it there, the same as any other image.
- Give it a label and any tags, and set its display size if you want a default.
- Save, then choose it in a stage’s asset picker.
Free icons and animated GIFs can be found on Pixabay; download one there and upload it here. SVG files are not accepted by the media library for use as an icon — PNG, GIF, JPG and WebP all work.
Removing an asset
Removing an asset from the library leaves every stage that used it without an icon until you pick another; the file itself stays in the media library. Deleting the plugin removes its settings, every post’s timeline and the still frames it generated for animated GIFs — your media library images are kept.
Left or right
The icon sits to the left or the right of the title. The offset fields move it anywhere from there, including above or below.
This is where the icon sits against the title — the offsets then decide exactly where.
Offsets
Offset is space, not coordinates. A positive X moves the icon right and a positive Y moves it down; negative values move it left and up. Both fields work the same way on either side, so switching from left to right does not flip the sign.
- Per position — an offset belongs to the position, so all three stages using that position share it.
- Reset — returns it to the placement the position’s name promises.
- Grows with the title — an offset is a distance on the title, measured against the title’s font size, like the gap and like the letters under it. A nudge settled on in the editor is the same part of the same letter on the page, whichever size the theme draws the title at there.
Facing the other way
Some icons — an arrow, a hand, a face — point one way. Every stage has a Flip horizontally checkbox that mirrors that stage’s icon, in the editor and on the site, without changing the library asset or any other stage.
Which line it lines up with
This decides where the X and Y offsets start from, on every icon.
- First line of the title — the default. With it, a title that wraps to two or three lines keeps the icon exactly where you placed it; a side icon sits beside that line’s own words rather than beyond the longest line, and adding lines below leaves the icon where it is.
- Last line of the title — Y counts from the bottom line, and a side icon sits after that line’s last word.
- Middle of the whole title — the icon is centred on all the lines together, and a side icon is measured from the widest line.
Space beside the icon
This is the space every icon uses unless its own post chooses another.
- Standard gap — leaves the usual space between the icon and the words, a fraction of the title’s own size.
- Flush against the words — puts the icon’s own edge against the last character, with no space between them, and drops the small-icon centring that the gap relies on.
A site-wide default applies to every post; a post can choose its own answer without affecting the rest.
Size
Sidebar → Size, per stage. A later stage can be bigger or smaller than the one before it.
- Empty means the asset’s size — leave Size blank to use the display size set on the asset itself, shown beside the field. Typing a number overrides it for that stage only.
- Units — px, em, rem or %. The default is px. em scales with the title, which keeps the icon in proportion as the heading grows.
- Resizing keeps its place — the icon stays centred on the title’s line and keeps its own space, so a size change never draws it over the words. Up to 20px it grows and shrinks about its middle; larger icons grow away from the title.
Sizing from the title size
Choose Advanced (custom sizes) on a stage and the icon is sized from a table of title sizes and icon sizes. Each row sets the icon size for titles from that title size up to the next row — rows of 32 → 32 and 40 → 45 draw a 32px icon beside every title from 32px to 39px, and a 45px one from 40px up.
- A title smaller than every row uses the first row’s icon; one larger than the last uses the last.
- An empty cell is dropped when you save.
- The table starts as a copy of the site’s numbers under Settings → Title size → icon size; editing one gives this stage its own table.
- A stage set to a fixed size keeps its own size instead.
The result is the same in the editor, the sidebar preview, the site, and in widget titles such as a Posts Slider.
Stacking order
The icon is drawn above the title’s words already. If your theme stacks its own elements over the heading — a ribbon, a badge, a hover overlay — Icon stacking order decides where the icon belongs among them. 0 is the page’s normal order, a higher number brings it forward and a negative one sends it behind; the editor and the site use the same number.
Tight cards
A post title may use the space your theme leaves beside it, but a card in a sidebar list or a slider does not own that space — some themes cut off whatever leaves the card.
- Off — nothing is resized. The icon keeps the size and offset you set in every card; if the card is narrower than the icon and its gap, the icon reaches past the edge and your theme decides whether that part is shown.
- On — an icon the card would cut off is drawn smaller, down to 8px, so it fits inside. The title is not touched: its words stay on the same line and are never indented. An icon is never hidden, and a card too narrow even for the smallest icon is left to clip.
A post’s own title is not a card, so it keeps the page’s space whichever way the switch is set.
Measured, not assumed
The icon is placed by measuring the title’s real text on the page it is drawn on, so your theme’s font, weight and size decide the gap. A theme cannot move the icon wrongly, because nothing about it is guessed in advance.
Placement is measured once your fonts load, when the window is resized and whenever the page changes, so a title that reflows puts the icon back without you doing anything.
Editor and your site
The icon can look slightly different in the two places, and the reason is the type — not the icon.
The block editor draws the title in your theme’s own type only when the theme shares its styles with the editor. When it does not, the canvas uses the editor’s font and size instead. The icon keeps its place on the letters as the title changes size, so a nudge means the same thing in both — but the letters themselves are drawn differently, and no setting can change that: the published page always shows your theme’s type.
Titles that wrap
A title that wraps onto a second or third line is measured again, so the icon keeps the place you gave it. By default it is anchored to the first line: your X and Y count from that line, and a side icon sits beside that line’s own words. The other two options — last line and middle of the whole title — are covered under which line it lines up with.
Caching and expiry
Each page carries every stage’s start and end time, and the browser picks the stage that is live from its own clock. A cached page therefore never freezes on an old badge and never shows a stage early — the same HTML serves a “New” icon today and a plain title next month.
This is also why the timeline works with page caches, object caches and CDNs without a purge: nothing about the decision is made on the server.
Reduced motion
An animated GIF cannot be paused with CSS. Respect reduced motion is on by default: for a reader whose system asks for less motion, the plugin draws a still frame of that GIF — its first frame, stored on the server — instead of the animation. Only animated GIFs are affected; every other icon is drawn exactly as before.
FAQ
Does the icon stay right when a page is cached?
Yes. Each page carries every stage’s start and end time, and the browser picks the live stage from its own clock, so a cached page shows the stage a reader should see.
Does it slow my site down?
One small script loads on pages that have an icon to place, and a small stylesheet loads on every page while the plugin is switched on.
Will it change my post titles?
No. The title text is never filtered or rewritten; the icon is placed beside it in the browser, after the page has loaded. Excerpts, feeds and search results keep the plain title.
What happens when I delete the plugin?
Its settings, every post’s timeline and the still frames it made for animated GIFs are removed. Your images in the Media Library are kept.
Can one icon be used by many posts?
Yes — that is the point of the shared library. Replacing the artwork updates every timeline that points at it, and each post still keeps its own schedule.
Where can I find the source code?
The compiled JavaScript is built from the source in the public repository: github.com/AhsanulBarakah/titlesparks (the blocks folder). To rebuild it, run npm ci and then npm run build.
Troubleshooting
| Symptom | First thing to check |
|---|---|
| No icon anywhere on the site | The master switch, then the post type — a post type that is not ticked never shows an icon. |
| Icon in the editor but not on the page | Save the post; the editor previews the unsaved timeline. Then check that the post page switch covers this post. |
| No icon on a post that has a timeline | The stage may not have started yet, may have been skipped by an empty End field, or may have expired with “remove the icon” chosen. |
| Icon missing in a widget or slider | That theme area or widget instance has its own switch — run Deep scan and check the area’s list of pages. |
| Icon cut off at a card edge | Turn on Fit icons inside tight cards, or reduce that stage’s size or offset. |
| Icon hidden behind a ribbon or badge | Raise Icon stacking order, or lower the theme element’s z-index. |
| Icon sits too far from the words | The gap follows the title’s font size; use Flush against the words for that post, or adjust the stage’s offset. |
| Animated GIF is a still picture for one reader | Respect reduced motion is on and that reader’s system asks for less motion. That is the intended behaviour. |
| Admin says the editor bundle is missing | The plugin folder was copied without its compiled files. Run npm ci and npm run build in the plugin directory, or reinstall from the release zip.
|
| Early posts changed their dates after a settings change | They keep the anchor they were saved with. Open the post and give it a new start if you want it to follow the new setting. |
If an icon vanishes after you remove a library asset, open the post and give that stage a new asset — nothing else about the timeline is lost.
Changelog
1.0.0 — first release. Requires WordPress 6.6 and PHP 7.4, tested against WordPress 7.1.
- A global asset library for images, icons and animated GIFs, with tags, folders, search and type filters.
- A three-stage expiration timeline on each supported post, with a duration and unit for every stage.
- A live icon beside the real post title in the block editor, plus a classic-editor meta box.
- The icon on every copy of a title: post page, archive and homepage cards, widget lists, related-stories rails and the previous/next links.
- Title-following icon sizing, with a site-wide table and a per-stage override.
- Per-stage position offsets and horizontal mirroring.
- Per-post overrides for the icon’s line, its gap and each display switch.
- Icon switches for every theme area the deep scan finds, and for every active widget instance.
- A still frame for reduced-motion readers, on by default.
- Complete cleanup on uninstall, keeping your Media Library images.
- Settings for supported post types, default stages and timeline behaviour, with the guide in the admin.
TitleSparks is free and open source under the GPL. All documentation · All plugins