# Prayer & Calendar: Free prayer times widget for your mosque website

Source: https://qurangallery.com/docs/prayer/website-widget

> Add daily prayer times or a Hijri calendar to your mosque site with one iframe. Free, no signup or key, 7 languages, light and dark themes.

The prayer times widget builder at [qurangallery.com/prayer/widgets](https://qurangallery.com/prayer/widgets) gives you one line of HTML that shows daily prayer times or a Hijri calendar on your mosque or community website. It is free, with no signup and no key, in 7 languages and light or dark themes.

You pick a city and a few options, copy the code and paste it where the widget should appear.

## Build your widget

Under **Build your widget**:

1. Search for your **City**, or tap one of the **Popular cities**. Until you pick one, the page says to search for a city to generate your code.
2. Choose the **Widget type**: **Daily prayer times** or **Hijri calendar**.
3. Set the options.
4. Press **Copy code**.

The **Live preview** beside the builder is the widget itself, running now.

## Options

- **Theme** — **Auto**, **Light mode** or **Dark mode**.
- **Language** — English, Arabic, Urdu, Indonesian, Turkish, Bengali or French.
- **Asr calculation (madhab)** — **Default here**, **Hanafi** or **Shafi**. Prayer times widget only.
- **Time format** — **12-hour** or **24-hour**. Prayer times widget only.

The calculation method follows each country's convention, so you don't pick one. The widget uses the same defaults as the city's page on Quran Gallery.

## The code you paste

The builder produces an iframe. This example is for London, in English, with the prayer times widget:

```html
<iframe src="https://qurangallery.com/prayer/widget?type=prayer-times&country=united-kingdom&city=london" width="100%" height="470" style="max-width:min(380px,100%);border:0;border-radius:12px" loading="lazy" title="Prayer Times — Quran Gallery"></iframe>
```

The prayer times widget is 470 px high; the Hijri calendar is 540 px high. Both are at most 380 px wide, and fill a narrower column. Paste the code into any page that accepts HTML.

Choosing a language other than English adds its code to the address, for example `/prayer/fr/widget` for French. The theme, Asr school and 24-hour format are added only when you change them from the defaults.

## What visitors see

The prayer times widget lists today's times for your city and counts down to the next prayer. The Hijri calendar widget shows a month of the Hijri calendar with Islamic events, following your country's moon-sighting authority. A link in the widget opens the full page on Quran Gallery.

The code pins the city, so every visitor to your page sees the same city's times.

## Does it stay current?

Yes. The widget works out the day's times each time it loads, so you never edit the code again. The server may reuse an answer for up to ten minutes.

## Free, and no key

The builder states no signup, no API key and no limits. The widget is meant to be embedded on other sites. It asks search engines not to index the frame itself.

## Need data instead of a widget?

If you want to build your own display, use the [prayer times API](https://qurangallery.com/docs/prayer/prayer-times-api). To let people add the times to their own calendar, see [calendar sync](https://qurangallery.com/docs/prayer/calendar-sync).

## See also

- [Prayer times](https://qurangallery.com/docs/prayer/prayer-times) — the full timetable the widget is drawn from.
- [Calculation methods](https://qurangallery.com/docs/prayer/calculation-methods) — how each country's default is chosen.
- [Hijri calendar](https://qurangallery.com/docs/prayer/calendar) — the page behind the calendar widget.

## Next steps

- [Open Prayer times widget](https://qurangallery.com/prayer/widgets)
- [Free zakat calculator with gold and silver nisab](https://qurangallery.com/docs/prayer/zakat-calculator)
- [Free prayer times API, no API key needed](https://qurangallery.com/docs/prayer/prayer-times-api)
- [Prayer documentation](https://qurangallery.com/docs/prayer)
