Blocks and Elementor widgets
Use MasjidOS in the block editor and in Elementor, and override widget templates in your theme.
On this page
Block editor
Search for MasjidOS in the block inserter. There is a block for each main widget: Prayer Times, Monthly Prayer Times, Islamic Calendar, Jumuah, Announcements, Events, Duas and Azkar, Khutbah Archive, This Week’s Khatib and Upcoming Khutbah. They give you visual controls instead of shortcode text. Any shortcode also works in a Shortcode block.
Elementor
When Elementor is active, MasjidOS adds seven widgets with styling and layout controls:
- Prayer Times
- Monthly Timetable
- Jumuah and Khatib
- Notices and News
- Islamic Calendar
- Ask the Imam Q&A
- Islamic Learning
Change the markup in your theme
Public widgets load their templates the way WooCommerce does. To change one, copy a file from the plugin’s public/templates/ folder into your theme (a child theme is best) at your-theme/masjidos/ or your-theme/masjidos/templates/, then edit the copy. The filter masjidos_template_path lets you point the lookup somewhere else.
Template files include prayer-times.php, monthly-prayer-times.php, jumuah.php, announcements.php, events.php, islamic-calendar.php, articles.php, duas-azkar.php and tv-display.php.