CA

Carrer.cat ad banners

2026 · neighbourhood magazine
Carrer.cat ad banners

Ad banner module for Carrer.cat: the editorial team publishes and pauses advertising from the web, with no code, a self-promotion fallback, a «Publicitat» label and a cookie-free view and click counter.

The magazine sells advertising; whoever publishes it shouldn’t write code

Carrer is the magazine of the FAVB, the Federation of Neighbourhood Associations of Barcelona. It lives in print and on the web, and like any publication it sells ad space: the front-page strip (the band of ads across the very top of the front page), the band above the headline, a box between paragraphs, the foot of the front page.

Until recently, adding a banner meant going into the theme templates, pasting an HTML tag with the image and the link, and remembering to take it down when the campaign ended. One person knew how. Everyone else had to ask and wait.

The problem

Three things at once:

  1. Code where it doesn’t belong. The banner lived inside the template, mixed with the design. One wrong comma could break the front page.
  2. Gaps. Without a paid ad, the strip was left empty or with old pieces out of place.
  3. No data. Advertisers asked how many people had seen their banner and there was no answer: no counter, no campaign parameters on the link.

The solution

A standard ad manager with our own layer on top. The engine is AdRotate (a WordPress plugin for managing ads, GPL): calendars, groups and dates. On top sits our own connector, carrer-banderoles, doing three jobs: deciding what appears in each position, speaking Catalan, and never showing code to the person publishing.

The new banner form: image, link, position and dates

Four positions and a fallback

The front-page strip, above the headline, after the first paragraph and at the end of the text. In each position, an active paid ad within its dates takes priority. If there is none, the magazine’s own self-promotion pieces appear, and if there are none of those either, the space disappears without leaving a hole.

The banner above the headline, in its own band

Several banners on the same strip

The strip is 754 pixels wide and fits three 250-pixel modules. The form asks how many modules the ad takes —one, two or three— and self-promotion fills whatever is left. A two-module ad plus a one-module ad can share the strip with the layout intact.

The «Publicitat» label

Every paid ad carries a «Publicitat» (advertising) mark inside the piece itself, not on the strip: if the strip has three, all three carry it. This isn’t only a design choice. Article 20 of Spanish Law 34/2002 of 11 July on information society services and electronic commerce (LSSI) requires electronic commercial communications to be clearly identifiable as such, and journalistic ethics call for separating information from advertising —especially between paragraphs.

An image designed for mobile

On a phone banners are much narrower. The form allows a second, squarer image used only below 781 pixels. Technically it is an HTML <picture> element: the browser decides, not the server, so it works with caching in the way.

View and click counter, without cookies

The banner screen has a Views / clicks column with totals and the last 30 days: the figure we hand to an advertiser who asks how the campaign went. No cookies, nothing stored in the browser; logged-in users are not counted, and the IP address only prevents counting the same visitor twice before being deleted automatically. Paid links also carry campaign parameters (UTMs) automatically, so advertisers can see the traffic in their own analytics.

The banner list, with image, dates and counter

In Catalan, with AdRotate out of sight

The editorial team sees one menu: Banderoles, with the summary, the form, the list and a help screen. AdRotate has no Catalan translation, so the connector translates the strings that are used and hides the rest. Permissions follow roles: the editor role can create and edit banners; groups and calendars stay with administrators.

Technology

WordPress with a block theme (FSE), AdRotate as the ad engine and our own PHP connector. The logic lives in a separate plugin, not in the theme, so a redesign never touches the advertising. Staging environment first, backups and version control. The cache clears itself when a banner is saved, and a nightly cron job purges it anyway.

It was all documented in a seven-page PDF manual —with screenshots and the pixel size of every position— available from the site itself, and closed with a 60-minute training session for the people who publish.

What the magazine gets

The editorial team publishes, pauses and edits ads without depending on anyone and without touching code. Advertisers get real impression and click figures instead of a guess. And advertising is clearly labelled, which is what the law asks for and what good practice asks for.

We do it for whoever needs it

The module isn’t exclusive to Carrer.cat. If you publish content and your ad space is still managed by hand —another neighbourhood magazine, a digital outlet, a cultural organisation or a collective— we can install it as it is or adapt it to your positions, your sizes and the way you work. With the same criteria as always: no ads inside the template, every piece labelled as advertising and real figures for whoever is paying. If that’s your project, let’s talk.

→ carrer.cat · Carrer.cat in the portfolio · Custom web applications

What we solved

Can advertising be managed without touching code?

Yes: a custom Catalan-language form lets the team publish, pause and edit banners from the web; the logic lives in a separate plugin and the editors never see HTML.

What happens if an advertiser leaves or there is no ad at all?

Every position has a fallback: without a paid ad, the magazine's own self-promotion appears; if there is none, the space disappears without leaving gaps.

How do you know how often a banner has been seen?

With our own impression and click counter, with no cookies or personal data, and with UTMs added automatically so advertisers can track it in their own analytics.

→ Parlem del teu projecte