My AFFINGER5 method for quieter affiliate disclosures

Affiliate disclosure links have a habit of demanding more attention than the recommendations they support. A bright call-to-action button is useful, but a large disclosure notice beside it can make the whole section feel like an advertisement. I use AFFINGER5’s custom CSS to make affiliate disclosure links less prominent while keeping them clear, accessible and easy to find.

My background as a physical therapist has influenced how I approach this. I rarely make dramatic changes without checking how they affect the whole system. The same applies to a blog: a small visual adjustment may look right on one post, yet become confusing on a narrow mobile screen or beside content with a different background.

My method is deliberately simple. I add a stable class to disclosure links, apply a short CSS rule through AFFINGER5’s custom CSS panel, and test the result with Australian readers in mind. That includes checking local spelling, prices in Australian dollars and whether the page still meets the expectations of people browsing commercial content in Brisbane, Sydney, Melbourne or elsewhere.

Disclosure is not decoration

An affiliate disclosure is not merely another piece of link styling. It tells readers that a recommendation may earn a commission, giving them information they need when deciding whether to trust the advice. Making that notice visually quieter is reasonable; concealing it or making it difficult to read is not.

I therefore keep the disclosure visible in the normal reading flow. Instead of shrinking it to an unreadable size or moving it into a hidden menu, I reduce its visual weight. It sits beside the recommendation, uses familiar wording and remains available to anyone who navigates the page with a keyboard or screen reader.

This distinction matters because a disclosure should never compete with the useful information, but it should also never look as though the publisher is embarrassed to disclose the relationship. The visual treatment should communicate “context” rather than “avoid me”.

Finding a selector that survives theme updates

The first step is to inspect the page rather than guess at the markup. I open the browser’s developer tools and examine a disclosure link on the finished post. If the link already has a useful class from the disclosure plugin or the block that created it, I can use that class directly.

If there is no suitable class, I add one in the WordPress editor. I prefer a name such as affiliate-disclosure because it describes the purpose instead of its location. This avoids fragile selectors based on link order, such as styling the final link in every paragraph. Such a rule might appear to work today, then target a completely different element after AFFINGER5 or another plugin is updated.

CSS also cannot reliably select an anchor based on the words inside it, so searching for visible link text in the stylesheet is rarely the answer. A semantic class is more dependable, easier to audit and simple for another person to understand if they maintain the site later.

The small CSS rule behind the change

In AFFINGER5’s custom CSS area, I use a compact rule that makes the disclosure inherit the surrounding text colour. I also reduce its size slightly, remove the bold weight and retain an underline with a dotted style. The dotted treatment still identifies it as a link without giving it the visual force of a primary button.

The markup can be as straightforward as <a class="affiliate-disclosure" href="/affiliate-disclosure">Affiliate disclosure</a>. The destination should lead to a clear explanation of the relationship, rather than a generic page filled with unrelated links.

Here is the CSS I normally use:

.affiliate-disclosure {
    color: inherit;
    font-size: 0.84em;
    font-weight: 400;
    line-height: 1.5;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.affiliate-disclosure:hover,
.affiliate-disclosure:focus-visible {
    text-decoration-style: solid;
}

I avoid heavy transparency because it can weaken text contrast against a coloured or dark background. If I want the disclosure to recede further, I adjust its font size or line height rather than fading the text into the page. On hover and keyboard focus, the underline becomes solid so the interactive element remains obvious.

Applying the class across a blog

For links created inside a Gutenberg paragraph, I switch to the HTML view for that block, add the class and then return to the visual editor. It is a small process, but I prefer using a reusable shortcode or block pattern when the same disclosure appears across many posts. That gives every article the same class and avoids introducing inconsistent formatting one page at a time.

If a plugin inserts the disclosure automatically, I check whether its settings provide a wrapper class I can style. If not, I use the plugin’s shortcode output or add the class to the generated wrapper. I do not override the whole plugin with custom CSS because a broad rule could affect links that have nothing to do with affiliate relationships.

Planning before publishing has always mattered to me. I explain the personal turning point behind that habit in studying English in Malta. The lesson carried into blogging: define the structure first, then use code to make small, controlled improvements.

Writing for an Australian audience

Australian readers tend to be direct about what they want from a recommendation. They may say “cheers” or “no worries” in a comment, but they still expect the commercial details to be plain. That conversational tone can appear in the introduction to a post, while the disclosure itself should use standard Australian English and avoid slang that might blur its meaning.

Local shopping context also changes how an affiliate section feels. A recommendation for a camera from Amazon.com.au, speakers from JB Hi-Fi, books from Booktopia or groceries from Woolworths sits within a market where prices include GST and delivery arrangements vary. I use Australian spellings such as “colour”, “favourites” and “organisation”, and I check that any figures are presented in AUD rather than copied unchanged from an overseas campaign.

The Australian Competition and Consumer Commission expects commercial relationships to be disclosed clearly, so wording is as important as presentation. I use a short phrase such as “Affiliate disclosure: I may earn a commission if you buy through this link.” I also compare the visual hierarchy of another publisher’s page, including the OnlineMir reference, before deciding whether my own notice feels balanced. The final wording still needs to describe my specific relationship rather than imitate a template.

Testing on phones, keyboards and real pages

I test the change in a private browser window and in a normal browsing session. That reveals whether the disclosure still attracts attention after cached styles load. I also zoom the page to 200 per cent and resize the browser window, since many Australian readers will encounter the article on a phone while commuting, travelling or checking a product while shopping.

Keyboard testing is just as important. I tab through the article and confirm that each disclosure link receives a visible focus indicator. I also listen to the link through a screen reader to make sure its purpose is understandable. The phrase “Affiliate disclosure” gives useful context; a vague label such as “click here” does the opposite.

After publishing, I compare click-through rates with earlier posts without treating the numbers as a verdict on trust. A quieter disclosure may reduce accidental clicks while helping readers understand which links are commercial. The useful signal is whether people continue reading, follow the recommendation and return to the site, rather than whether a tiny label produces an unusually large number of clicks.

Keeping useful links visually prominent

The quiet styling applies only to the disclosure, not to the product link or button that follows it. Readers should still be able to distinguish an active recommendation from supporting information about the relationship. A button labelled “Check the current price” can remain bold and colourful because it represents the next useful action.

I also avoid changing the wording simply because the disclosure is less noticeable. A clear explanation remains more valuable than a decorative trick, particularly when a post has several affiliate relationships. Each link receives its own nearby disclosure, avoiding the common practice of placing one general notice at the bottom of a long article.

The final result in AFFINGER5 is restrained rather than hidden. Affiliate disclosure links recede into the reading flow, product links remain obvious, and Australian readers can still identify the commercial relationship without hunting for it. That balance is the result I wanted from a small, carefully tested CSS change.