Prayer times are the most visited part of almost every mosque website. People check them on the way to work, before Jummah and every evening in Ramadan, and they expect the times on the site to match the board in the prayer hall. If the times are wrong or hard to find on a phone, people stop trusting the website altogether.
This guide shows four practical ways to add prayer times to a WordPress site, from a theme that already has them built in to a custom widget written for your masjid. It also covers the settings that decide whether the times are correct, because the method you choose matters far less than getting the calculation right.
Before you start: decide what you actually need to show
“Prayer times” can mean several different things. Agree these with the imam or committee before you touch WordPress:
- Start times (adhan times): when each prayer begins. These can be calculated automatically for your city.
- Iqamah or jamaat times: when the congregation actually stands for prayer. These are set by the masjid and cannot be calculated, so someone has to enter or approve them.
- Jummah: one or more Friday prayer times, often with khutbah times and languages.
- Ramadan times: Sehri (Suhoor) and Iftar, usually needed as a full month timetable people can print or save.
- A Hijri date: useful beside the Gregorian date, especially around Ramadan and Eid.
- Where the times appear: a small panel on the homepage, a full monthly timetable page, or both.
Most mosque sites need today’s times on the homepage, a monthly timetable on its own page, and Jummah times wherever people look for them first.
Get the calculation settings right
Every automatic method, whether a theme, a plugin or an embed, relies on a few settings. Check them with your imam rather than accepting the defaults:
- Location: use the masjid’s exact city or coordinates, not the capital of your country.
- Calculation method: common conventions include Muslim World League, ISNA, Umm al-Qura, Egyptian General Authority and the University of Islamic Sciences, Karachi. They use different angles for Fajr and Isha, so the times can differ noticeably.
- Asr method: the standard (Shafi’i, Maliki, Hanbali) method or the Hanafi method. The Hanafi Asr time is later, and using the wrong one is one of the most common complaints.
- High-latitude rule: in places such as the UK, northern Europe and Canada, Fajr and Isha can be difficult to calculate in summer. Plugins usually offer an option for this; agree which rule your masjid follows.
- Time zone and daylight saving: set the correct time zone in WordPress under Settings, General, and check the times on the days the clocks change.
- Manual adjustments: many masjids add or subtract a few minutes from calculated times. Make sure your chosen method lets you do this.
Once these are agreed, write them down somewhere the next volunteer can find them.
Method 1: Use a mosque theme with prayer times built in
The simplest route is a theme designed for masjids, where prayer times are part of the design rather than an add-on squeezed into a sidebar. The times are styled to match the rest of the site and already sit where visitors expect them.
Our Taqwa theme, for example, includes daily prayer times, a monthly Salat calendar, Jummah and a live countdown for the masjid’s city, plus Sehr and Iftar widgets and a Hijri date for Ramadan. Tabligh, built for institutes and madrasahs, includes daily prayer times plus Sehr and Iftar, and lets you point salah, Sehr and Iftar at the institute’s city from the theme options. Both themes have a regular licence of $59 and are edited in Elementor. If you are comparing several options, our post on Islamic WordPress themes with prayer times covers the themes side by side.
Best for: new sites, or sites that are due a redesign anyway.
Watch out for: switching themes on an existing site changes the whole design, so treat it as a redesign, not a quick fix.
Method 2: Install a prayer times plugin
If you are happy with your current theme, a prayer times plugin adds the times without changing the design. The WordPress plugin directory has several free options; search for “prayer times” under Plugins, Add New.
A typical set-up looks like this:
- Back up the site, then install and activate the plugin.
- Open its settings and enter the location, calculation method, Asr method and high-latitude rule you agreed earlier.
- Enter iqamah times if the plugin supports them, or upload a timetable if it accepts a spreadsheet or CSV file.
- Place the times on the page using the plugin’s block, widget or shortcode, for example a small daily panel on the homepage and a monthly table on a “Prayer Times” page.
- Compare a full week of output against your printed timetable before you announce it.
When choosing a plugin, look at when it was last updated, whether it supports iqamah times and manual adjustments, whether the monthly timetable can be printed, and how the table looks on a phone. Read the support forum to see whether questions are answered.
Best for: existing sites that only need prayer times added.
Watch out for: plugins that look out of place in your design, or that stop being maintained. Every extra plugin is one more thing to update.
Method 3: Embed a prayer times widget
Some prayer time services offer a free widget: you choose your city and settings on their website and they give you a short piece of embed code. To add it:
- Open the page in the block editor.
- Add a Custom HTML block where you want the times to appear.
- Paste the embed code, preview the page, then update it.
Paste the code into a Custom HTML block, not a Paragraph block, because WordPress removes script code from normal text blocks. If you want the widget on every page, a header and footer snippet plugin can insert it once rather than page by page. Some WordPress.com plans restrict custom HTML and scripts, so check your plan first.
Best for: a quick result on a site you cannot change much.
Watch out for: limited styling, the service’s branding, and your times depending on a third-party website staying online. Embeds rarely handle a masjid’s own iqamah times well.
Method 4: A custom prayer times widget or plugin
Larger masjids sometimes outgrow all three options. Perhaps the committee publishes iqamah times that change weekly, needs several Jummah sessions in different languages, wants Arabic or Urdu labels that read correctly, or wants the same times on the website, a screen in the foyer and an app.
In that case a small custom plugin, written around how your masjid publishes its times, is often cleaner than stacking plugins. Our Islamic plugin development service writes prayer-time widgets, Hijri calendars, Zakat calculators and donation shortcodes, with settings a volunteer can change, such as the city and labels, without opening code. The scope and price are agreed in writing before work starts.
Best for: masjids with their own timetable rules or several places the times must appear.
Watch out for: you will need someone to maintain the code, so agree support before you start.
Which method should you choose?
- Building a new site? Start with a mosque theme that already includes prayer times.
- Happy with your current site? Try a well-maintained plugin and test it for a week.
- Need something live today? Use an embed as a stopgap.
- Have unusual requirements? Brief a custom widget.
Whatever you choose, show today’s times on the first screen of the homepage on a phone, give the full timetable its own page with a clear menu link, and make Jummah times easy to find.
Keep the times accurate after launch
Accuracy is a habit, not a one-off task:
- Name one person who approves iqamah changes and updates the site.
- Check the times whenever the clocks change, and before Ramadan.
- Publish the Ramadan timetable early and check Sehri and Iftar against your printed version.
- Look at the prayer times page on a phone after every theme or plugin update.
- Add a short line stating your calculation method, so people understand any difference from other masjids.
Need help adding prayer times?
If you would like prayer times added to a site you already run, a mosque theme set up with your city and timetable, or a new site built around them, browse our mosque websites page or tell us about your masjid. We will suggest the simplest route that keeps your times correct.
Frequently asked questions
Do I need a plugin to show prayer times in WordPress?
Not always. A mosque theme such as Taqwa includes prayer times, and an embed widget can be pasted into a Custom HTML block without a plugin. A plugin is the usual choice when you want to keep your current theme.
Why are the prayer times on my website different from my mosque’s timetable?
Usually because of a different calculation method, Asr method, high-latitude rule or time zone. Match these settings to the method your masjid uses, and add manual adjustments if your committee applies them.
Can WordPress calculate iqamah or jamaat times?
No. Iqamah times are set by each masjid. Choose a method that lets you enter or upload them, or have them added to a custom widget.
Can I show Ramadan Sehri and Iftar times?
Yes. Many prayer time plugins can show Sehri and Iftar, and themes such as Taqwa and Tabligh include Sehr and Iftar widgets. Publish the full month as its own page so people can print it.


No comment