Skip to main content

Keeping address and opening hours in one place in Joomla – change once, current everywhere

The bakery gets a new phone number. The website still shows the old one in the footer, in the legal notice, on the contact page and in two articles. Three places get changed, two are forgotten. Six months later a customer calls the old number. Here I show how to store address, phone and opening hours so that you change them in one place only.

Why the details end up everywhere

A website grows. At first the address is only in the legal notice, then it moves into the footer, onto the contact page, into the directions and below an article about the open day. Every place is a copy. As long as nothing changes, nobody notices.

Opening hours are even trickier. They change more often, differ between summer and winter and do not apply on public holidays. Anyone who maintains them in four places will sooner or later have four different versions.

Option 1: one module, included several times

Joomla already has a tool for this. You enter the details once in a module of the type “Custom” and show it in the footer. In articles you include the same module with , where 123 is the module's ID. The plugin “Content – Load Modules”, which is enabled in Joomla, takes care of this.

The limit: the module is always a whole block. If you need only the address in the legal notice and only the phone number in the footer, you are back to two modules with duplicate details.

Option 2: Joomla's contacts

Under Components → Contacts, a contact has fields for address, telephone, mobile, fax, email and website. On the contact page Joomla shows these details together with a form. For the company address that is a good place.

A contact does not know opening hours, the register court or the VAT ID, though. They end up as free text in the “Miscellaneous Information” field. And the contact does not appear in the footer or the legal notice by itself.

Option 3: custom fields

With Joomla's custom fields you give articles or contacts additional details, such as an “Opening hours” field. That brings order to the entry. But a field always belongs to one article or contact; it does not create a detail for the whole website that every page can read.

How to recognise a good solution

  • One place for each detail. The phone number is stored once, and every page reads it from there.
  • Single values instead of blocks. The footer shows only phone and address, the legal notice the legal details.
  • Opening hours as data, not text. Then they can be shown as a table or as a short line such as “Mon–Fri 9:00–17:00”.
  • Multilingual. A phone number is the same in every language, weekdays are not.

How to proceed

  1. Find every place where address, phone or opening hours appear. The search under Content → Articles and the list of modules in the backend help with this.
  2. Decide where each detail will have its one place from now on.
  3. Replace the copies step by step with references to that place.
  4. Finally check the legal notice and the contact page. Wrong details matter most there.

With YOOtheme Pro: Business Profile

For websites with YOOtheme Pro I developed Business Profile. You enter company, address, contact details, opening hours and legal details in one form. In the builder you then connect each element to a single value: the footer to phone and address, the legal notice to owner, register and VAT ID.

On top of that there are calculated fields: the address on one line, the phone number as a clickable link, the link to Google Maps and the opening hours as short text. Change the number in the form and it is new on every page.

The Free version costs nothing and fully covers one location. The Pro version adds a ready-made element for business card, opening hours and legal notice block, several locations, seasonal hours for summer and winter, special days with “open now”, placeholders for articles and structured data for search engines.

This article is also available in German.

Related extension

Business Profile keeps address, phone and opening hours in one place and brings them into the YOOtheme builder. The Free version costs nothing.

A question about this topic, or an idea for the next guide? Write to me.

Norbert Graup

# Topics
Related extension

Joomla bundle: all Pro versions, updates and personal support.

Still have questions?

Contact me - I will solve your problem too.

Graup - IT - Norbert Graup IT Services

© Graup-IT - Norbert Graup IT Services