Asbab documentation
v1.4.52
Thank you for purchasing Asbab — a multipurpose WordPress block theme with first-class Arabic (RTL) and English (LTR) support. This guide takes you from installation to a finished website.
توثيق قالب أسباب
v1.4.52
شكراً لشرائك قالب أسباب — قالب ووردبريس متعدد الاستخدامات مبني بالبلوكات، بدعم أصيل للعربية والإنجليزية. هذا الدليل يأخذك من التثبيت حتى موقع جاهز.

Requirementsالمتطلبات
- WordPress 6.6 or newer (tested up to 7.1)
- PHP 7.4 or newer
- Optional: WooCommerce 9+ for online-store features
- ووردبريس 6.6 أو أحدث (مُختبر حتى 7.1)
- PHP 7.4 أو أحدث
- اختياري: ووكومرس 9 أو أحدث لمزايا المتجر
Installationالتثبيت
- Unzip the package you downloaded. Inside you will find
asbab.zip(the installable theme) and this documentation. - In WordPress go to Appearance → Themes → Add New Theme → Upload Theme.
- Choose
asbab.zip, click Install Now, then Activate.
- فك ضغط الحزمة التي حمّلتها. ستجد بداخلها
asbab.zip(ملف القالب القابل للتثبيت) وهذا التوثيق. - من لوحة ووردبريس اذهب إلى المظهر ← قوالب ← أضف قالباً جديداً ← رفع قالب.
- اختر
asbab.zipواضغط التنصيب الآن ثم تفعيل.
Do not upload the whole package zip — upload asbab.zip only, otherwise WordPress reports “The package could not be installed. The theme is missing the style.css stylesheet.”
لا ترفع ملف الحزمة كاملاً — ارفع asbab.zip فقط، وإلا سيظهر خطأ "القالب لا يحتوي على ملف style.css".
The Asbab menu & toolbarقائمة أسباب والشريط العلوي
Every Asbab tool is in one place: the Asbab item in the WordPress admin menu — Dashboard (quick start, demo pages, dark mode), License, Pattern library, Form entries, Forms & settings, AI connection, Design & styles and this documentation. On the front end and in the dashboard, the Customize Asbab menu in the top toolbar opens colours & fonts, header, footer, menus, patterns and templates in one click.
كل أدوات أسباب في مكان واحد: عنصر أسباب في القائمة الجانبية للوحة التحكم — لوحة التحكم (البداية السريعة والصفحات التجريبية والوضع الداكن)، والترخيص، ومكتبة الأنماط، ورسائل النماذج، والنماذج والإعدادات، وربط الذكاء الاصطناعي، والتصميم والأنماط، وهذا الدليل. وفي الموقع ولوحة التحكم تفتح قائمة تخصيص أسباب في الشريط العلوي الألوان والخطوط والترويسة والتذييل والقوائم والأنماط والقوالب بنقرة واحدة.
License & premium featuresالترخيص والميزات المميزة
The design always works. Demo pages, the AI connection and automatic updates require an active license key (Asbab → License). When the year of updates ends, everything you have keeps working — only new updates stop until you renew.
التصميم يعمل دائماً. أما الصفحات التجريبية وربط الذكاء الاصطناعي والتحديثات التلقائية فتحتاج مفتاح ترخيص فعّالاً (أسباب ← الترخيص). وعند انتهاء سنة التحديثات يبقى كل ما لديك يعمل — فقط تتوقف التحديثات الجديدة حتى تجدد.
Pattern library: editable & synced patternsمكتبة الأنماط: أنماط قابلة للتعديل ومتزامنة
WordPress always shows a theme’s own patterns as locked and “not synced”. Open Asbab → Pattern library and click Copy patterns to add all Asbab sections to My patterns — as editable copies or as synced patterns (edit once, update everywhere). Patterns you insert in a page are fully editable.
يعرض ووردبريس أنماط أي قالب دائماً مقفولة و«غير متزامنة». افتح أسباب ← مكتبة الأنماط واضغط نسخ الأنماط لإضافة كل أقسام أسباب إلى أنماطي — كنسخ قابلة للتعديل أو كأنماط متزامنة (تعدّلها مرة فتتغير في كل مكان). والأنماط التي تدرجها في الصفحة قابلة للتعديل بالكامل.
Theme options: header, announcement bar, menus & widgetsخيارات القالب: الترويسة وشريط الإعلانات والقوائم والودجات
Open Asbab → Theme options. In Header pick a style with one click — Classic, Centered, Transparent (floats over a dark cover image, on the homepage or all pages) or Shop (big product search) — then show or hide the sticky behaviour, search button, cart, account icon and the call-to-action button, change the button text and link (use #whatsapp to open the WhatsApp window) and set the logo width.
افتح أسباب ← خيارات القالب. في تبويب الترويسة اختر الشكل بنقرة واحدة — كلاسيكي، في المنتصف، شفاف (يطفو فوق صورة غلاف داكنة في الرئيسية أو كل الصفحات) أو متجر (بحث كبير عن المنتجات) — ثم أظهر أو أخفِ التثبيت أثناء التمرير وزر البحث والسلة وأيقونة الحساب وزر الدعوة لإجراء، وغيّر نص الزر ورابطه (استخدم #whatsapp لفتح نافذة واتساب) وحدّد عرض الشعار.
Announcement bar: a thin bar above the header for offers (“Free shipping over $50”), with an optional link, four colours and a close button that visitors’ browsers remember.
شريط الإعلانات: شريط رفيع فوق الترويسة للعروض («شحن مجاني فوق 50$») مع رابط اختياري وأربعة ألوان وزر إغلاق يتذكره متصفح الزائر.
Menus & widgets: menus are edited visually in the Site Editor, but you can also build a classic menu in Appearance → Menus, assign it to “Header menu” and switch it on here. Three widget areas live in Appearance → Widgets — Sidebar, Shop sidebar and Footer widgets — and the Widget area block shows any of them inside a page or template.
القوائم والودجات: تُحرَّر القوائم بصرياً في محرر الموقع، ويمكنك أيضاً إنشاء قائمة كلاسيكية من المظهر ← القوائم وربطها بـ«قائمة الترويسة» ثم تفعيلها هنا. وتتوفر ثلاث مناطق ودجات في المظهر ← الودجات — الشريط الجانبي، والشريط الجانبي للمتجر، وودجات التذييل — ويعرض مكوّن منطقة ودجات أياً منها داخل صفحة أو قالب.
Setup wizard & store featuresمعالج الإعداد وميزات المتجر
Right after activating the theme the setup wizard opens (you can run it any time from Asbab → Setup wizard): 1) site name, tagline, logo and site icon, 2) your business type, 3) colours and fonts (a matching colour style is suggested), 4) header style, header button, WhatsApp number and dark mode, 5) ready-made pages for your business (with an active license). Every step can be skipped and changed later.
بعد تفعيل القالب مباشرة يفتح معالج الإعداد (ويمكنك تشغيله في أي وقت من أسباب ← معالج الإعداد): 1) اسم الموقع والوصف والشعار وأيقونة الموقع، 2) نوع نشاطك، 3) الألوان والخطوط (يُقترح نمط ألوان مناسب)، 4) شكل الترويسة وزرها ورقم واتساب والوضع الليلي، 5) صفحات جاهزة لنشاطك (مع ترخيص فعّال). يمكن تخطي أي خطوة وتغييرها لاحقاً.
Store features (WooCommerce)ميزات المتجر (ووكومرس)
Built in, no extra plugins: wishlist (heart on products, a Wishlist page and a counter next to the cart), variation swatches (buttons and colour circles — set a colour per attribute term in Products → Attributes, common colour names are detected automatically), quick view, an added-to-cart notification, a sticky add-to-cart bar on product pages and a free shipping progress bar (uses your WooCommerce free shipping minimum, or the amount you set). Turn each one on or off in Asbab → Theme options → Store features. Requires an active license in the direct edition.
مدمجة دون إضافات: المفضلة (قلب على المنتجات وصفحة «المفضلة» وعدّاد بجانب السلة)، ومبدّل المتغيرات (أزرار ودوائر ألوان — حدّد لوناً لكل قيمة من المنتجات ← الخصائص، وأسماء الألوان الشائعة تُكتشف تلقائياً)، والعرض السريع، وإشعار الإضافة إلى السلة، وشريط شراء ثابت في صفحات المنتجات، وشريط تقدّم الشحن المجاني (يستخدم الحد الأدنى للشحن المجاني في ووكومرس أو المبلغ الذي تحدده). فعّل أو أوقف كل ميزة من أسباب ← خيارات القالب ← ميزات المتجر. تحتاج ترخيصاً فعّالاً في النسخة المباشرة.
Asbab Library & blocksمكتبة أسباب والمكوّنات
Building pages stays inside the normal WordPress editor — no page builder to learn. Click the green Asbab Library button at the top of the editor (pages, posts and the site editor) to browse every Asbab section and full page with live previews in your own colours and fonts. Pick a category or search, click a design and it is added after the selected section; then click any text or image to change it. Shortcut: Customize Asbab → New page from the Asbab Library in the top toolbar.
بناء الصفحات يبقى داخل محرر ووردبريس العادي — بدون باني صفحات جديد تتعلمه. اضغط زر مكتبة أسباب الأخضر أعلى المحرر (الصفحات والمقالات ومحرر الموقع) لتصفح كل أقسام أسباب والصفحات الكاملة بمعاينة حيّة بألوانك وخطوطك. اختر تصنيفاً أو ابحث، واضغط على التصميم فيُضاف بعد القسم المحدد، ثم اضغط على أي نص أو صورة لتغييره. اختصار: تخصيص أسباب ← صفحة جديدة من مكتبة أسباب في الشريط العلوي.
New blocks in the Asbab category of the inserter: Countdown (pick the end date; choose boxes or simple style and the text shown when it ends), Animated number (number, text before/after, label — it counts up when visitors scroll to it) and Tabs (click a tab title to edit it, “+” adds a tab, put any blocks inside).
مكوّنات جديدة في تصنيف أسباب داخل قائمة الإضافة: عدّاد تنازلي (اختر تاريخ الانتهاء، وشكل المربعات أو البسيط، والنص الذي يظهر عند الانتهاء)، ورقم متحرك (الرقم وما قبله وما بعده والتسمية — يعدّ تصاعدياً عندما يصل إليه الزائر)، وتبويبات (اضغط عنوان التبويب لتعديله، و«+» يضيف تبويباً، وضع أي مكوّنات بداخله).
Shop page: sidebar & filtersصفحة المتجر: الشريط الجانبي والفلاتر
The shop, category and product search pages show a sidebar with product search and instant filters: categories, price slider, brands (Products → Brands), attributes such as colour and size (Products → Attributes — colours appear as dots), rating and availability. Results update without reloading the page; on phones the filters open from a “Filters” button. In Asbab → Theme options → Store features choose the sidebar position (start, end or none), products per row and which filters to show. Filters with nothing to show are hidden automatically.
تعرض صفحات المتجر والتصنيفات ونتائج البحث شريطاً جانبياً فيه البحث عن منتج وفلاتر فورية: التصنيفات، والسعر بشريط سحب، والماركات (المنتجات ← الماركات)، والخصائص مثل اللون والمقاس (المنتجات ← الخصائص — الألوان تظهر كدوائر)، والتقييم، والتوفر. تتحدث النتائج دون إعادة تحميل الصفحة، وعلى الجوال تفتح الفلاتر من زر «فلترة». ومن أسباب ← خيارات القالب ← ميزات المتجر اختر مكان الشريط (البداية أو النهاية أو بدون)، وعدد المنتجات في الصف، والفلاتر التي تظهر. الفلاتر الفارغة تُخفى تلقائياً.
Blog: grid/list, sidebar & newsletterالمدونة: شبكة/قائمة، الشريط الجانبي والنشرة البريدية
The blog, category, tag and search pages show posts as cards with a grid/list switch (each visitor's choice is remembered), the latest post as a large featured card, breadcrumbs and a sidebar with: search, an “About the blog” card with social links, categories with counts, most read posts (views are counted automatically), latest posts, a newsletter form, tags and a promo banner. In Asbab → Theme options → Blog choose the default view, posts per row, the sidebar position, whether single posts show the sidebar, which sections appear and their texts and images. Newsletter subscribers are saved in Users → Subscribers with a CSV export. The “Popular posts”, “Newsletter” and “Breadcrumbs” blocks can also be added to any page.
تعرض صفحات المدونة والتصنيفات والوسوم والبحث المقالات كبطاقات مع زر تبديل بين الشبكة والقائمة (ويُحفظ اختيار كل زائر)، وأحدث مقالة كبطاقة مميزة كبيرة، ومسار التنقل، وشريطاً جانبياً فيه: البحث، وبطاقة «عن المدونة» مع روابط التواصل، والتصنيفات مع العدد، والأكثر قراءة (تُحسب المشاهدات تلقائياً)، وأحدث المقالات، ونموذج النشرة البريدية، والوسوم، وبانر ترويجي. ومن أسباب ← خيارات القالب ← المدونة اختر العرض الافتراضي، وعدد المقالات في الصف، ومكان الشريط الجانبي، وإظهاره في صفحة المقالة، والأقسام التي تظهر ونصوصها وصورها. يُحفظ مشتركو النشرة في المستخدمون ← المشتركون مع تصدير CSV. ويمكن أيضاً إضافة مكعبات «الأكثر قراءة» و«النشرة البريدية» و«مسار التنقل» لأي صفحة.
Quick start: demo pages in one clickالبداية السريعة: صفحات تجريبية بضغطة واحدة
Go to Asbab → Dashboard, choose a homepage layout (Business, Agency, Restaurant/Café, Salon, Medical clinic, Real estate, Courses/Academy, Online Store, Kids fashion store, SaaS or Single-product sales page) and click Create demo pages. Asbab creates Home, About, Services, Pricing, Contact and Blog pages, sets the homepage and blog page, and builds the main menu. Nothing existing is changed or deleted.
اذهب إلى أسباب ← لوحة التحكم، اختر تصميم الصفحة الرئيسية (شركة، وكالة، مطعم/مقهى، صالون، عيادة طبية، عقارات، دورات/أكاديمية، متجر إلكتروني، متجر أزياء أطفال، تطبيق أو صفحة بيع لمنتج واحد) ثم اضغط إنشاء الصفحات التجريبية. سينشئ أسباب صفحات الرئيسية، من نحن، الخدمات، الأسعار، تواصل معنا والمدونة، ويضبط الصفحة الرئيسية وصفحة المقالات، ويبني القائمة الرئيسية. لن يُحذف أو يتغير أي محتوى موجود.

Building pages manuallyبناء الصفحات يدوياً
- Pages → Add New. When the pattern picker opens, choose a layout from Asbab: Full Pages (or close it and use the + inserter → Patterns).
- In the sidebar, set the template to Page (No Title) for landing-style pages.
- Edit any text or image directly. Add more sections from the Asbab pattern categories.
- صفحات ← أضف جديدة. عند ظهور نافذة الأنماط اختر تصميماً من أسباب: صفحات كاملة (أو أغلقها واستخدم زر + ← الأنماط).
- من الشريط الجانبي اختر القالب صفحة (بدون عنوان) للصفحات التسويقية.
- عدّل أي نص أو صورة مباشرة، وأضف أقساماً أخرى من تصنيفات أنماط أسباب.
Style variationsأنماط الألوان
Open Appearance → Editor → Styles and click a variation. Every colour, gradient and font in every pattern updates instantly. You can also fine-tune colours, typography and spacing from the same panel.
افتح المظهر ← المحرر ← الأنماط واضغط على أي نمط. ستتغير ألوان وخطوط كل الأقسام فوراً. يمكنك أيضاً تعديل الألوان والخطوط والمسافات من نفس اللوحة.


| Style | Best for | مناسب لـ | Font |
|---|---|---|---|
| Default (Emerald) | Business, services | الشركات والخدمات | Readex Pro |
| Midnight | Dark mode, tech, gaming | الوضع الداكن، التقنية | Readex Pro |
| Coral Café | Restaurants, cafés, bakeries | المطاعم والمقاهي | Cairo |
| Rose Salon | Salons, beauty, clinics | الصالونات والتجميل والعيادات | IBM Plex + Noto Kufi |
| Indigo Tech | SaaS, apps, startups | التطبيقات والشركات الناشئة | Readex Pro |
| Royal Navy | Corporate, law, finance | الشركات والمحاماة والمالية | Noto Kufi Arabic |
| Sand Editorial | Blogs, magazines, portfolios | المدونات والمجلات | IBM Plex Sans Arabic |
| Oud Gold | Perfume, jewellery, luxury gifts | العطور والمجوهرات والهدايا الفاخرة | Noto Kufi Arabic |
| Olive Organic | Organic food, honey, natural products | المنتجات العضوية والعسل والمنتجات الطبيعية | Cairo |
| Kids Fashion | Kids’ clothing, toys, baby shops (navy & coral) | ملابس الأطفال والألعاب ومستلزمات المواليد (كحلي ومرجاني) | Tajawal |
| Kids Boutique | Girls’ boutiques, occasion wear (sage & blush) | بوتيكات البنات وملابس المناسبات (أخضر مريمي ووردي) | Tajawal |
Patternsالأنماط الجاهزة (Patterns)
All patterns live in the block inserter under categories prefixed Asbab:.
كل الأنماط موجودة في أداة الإدراج تحت تصنيفات تبدأ بـ أسباب:
| Category | Patterns |
|---|---|
| Hero | Split with image · Centered · Full-screen cover · Stats & card · Restaurant · Salon |
| Features & Services | Icon grid · Image cards · Alternating rows · 4-step process · Services price list · Shop benefits |
| About & Team | About split · Stats band · Team grid |
| Pricing | Three plans · Restaurant menu · Services price list |
| Testimonials & Logos | Three cards · Large quote · Logo strip |
| Call to Action | Accent banner · Dark split · Newsletter · Shop promo |
| Content & FAQ | FAQ accordion · Portfolio gallery · Menu |
| Blog & Posts | Latest posts grid · Horizontal list |
| Contact | Contact details & cards |
| Shop | Category tiles · Latest products (WooCommerce) · Promo banners · Benefits bar · Limited offer with countdown |
| Real Estate | Hero · Property listings |
| Courses & Education | Hero · Course cards |
| Clinic & Medical | Hero · Departments · Doctors |
| Forms | Contact form · Booking / appointment form · Order form (cash on delivery) |
| Full Pages | Home — Business / Agency / Restaurant / Salon / Medical Clinic / Real Estate / Courses / Online Store / Kids Fashion / SaaS · Product landing (sales page) · Coming soon · About · Services · Pricing · Contact |
| New | Product hero with offer · How to order + final offer · Comparison table · Timeline · Opening hours & location · Video section · Announcement bar · Floating WhatsApp button · Author box |
Templates & template partsالقوالب وأجزاؤها
Templates: Index, Blog home, Single post, Single with sidebar, Page, Page (wide), Page (no title), Landing page (transparent header), Blank canvas, Archive, Search, 404. WooCommerce templates use the theme header and footer automatically.
القوالب: الفهرس، صفحة المدونة، المقال، المقال مع شريط جانبي، الصفحة، صفحة عريضة، صفحة بدون عنوان، صفحة هبوط بترويسة شفافة، صفحة فارغة، الأرشيف، البحث، 404. قوالب ووكومرس تستخدم ترويسة وتذييل القالب تلقائياً.
Parts: Header (store — search, account & cart, with announcement bar), Header (default, sticky), Header (centered with top bar), Header (transparent), Footer (four columns), Footer (minimal), Sidebar, Post meta. To switch header on all pages: Editor → Templates → choose a template → select the header block → in the toolbar use Replace.
الأجزاء: ترويسة المتجر (بحث وحساب وسلة مع شريط إعلان)، ترويسة افتراضية ثابتة، ترويسة متوسطة مع شريط علوي، ترويسة شفافة، تذييل بأربعة أعمدة، تذييل مبسّط، شريط جانبي، بيانات المقال. لتغيير الترويسة: المحرر ← القوالب ← اختر القالب ← حدد الترويسة ← من شريط الأدوات اختر استبدال.
Arabic, RTL & translationالعربية والاتجاه والترجمة
Set Settings → General → Site Language to العربية. The whole theme switches to right-to-left: layout, arrows, lists, quotes, pagination and menus. Asbab uses CSS logical properties everywhere, so there is no separate RTL stylesheet to maintain. All theme strings (including pattern texts) are translated to Arabic in languages/ar.po.
اختر الإعدادات ← عام ← لغة الموقع = العربية. سيتحول القالب كاملاً للاتجاه من اليمين لليسار: التخطيط والأسهم والقوائم والاقتباسات والترقيم. يعتمد أسباب على خصائص CSS المنطقية فلا يوجد ملف RTL منفصل. كل نصوص القالب (ومنها نصوص الأنماط) مترجمة للعربية في languages/ar.po.

Other languages: translate languages/asbab.pot with Poedit or Loco Translate. Bilingual sites: Asbab works with Polylang, WPML and TranslatePress.
لغات أخرى: ترجم ملف languages/asbab.pot باستخدام Poedit أو إضافة Loco Translate. مواقع ثنائية اللغة: أسباب متوافق مع Polylang و WPML و TranslatePress.
Pattern texts are translated when the pattern is inserted. Pages created before switching language keep their original text — edit them or recreate from patterns.
نصوص الأنماط تُترجم لحظة إدراجها. الصفحات التي أُنشئت قبل تغيير اللغة تبقى بنصها الأصلي — عدّلها أو أعد إنشاءها من الأنماط.
WooCommerce
Install and activate WooCommerce. Asbab styles the block-based shop, product pages, mini cart, cart and checkout to match your chosen style variation. The Shop — latest products pattern automatically uses the WooCommerce Product Collection block; the mini cart appears in the default header.
ثبّت وفعّل ووكومرس. ينسّق أسباب صفحات المتجر والمنتج والسلة المصغرة والسلة والدفع لتتناسق مع نمط الألوان المختار. نمط المتجر — أحدث المنتجات يستخدم بلوك مجموعة المنتجات تلقائياً، وأيقونة السلة تظهر في الترويسة.

Sale campaigns: scheduled offers with a countdownحملات العروض: عروض مجدولة مع عدّاد تنازلي
Open Asbab → Sale campaigns (needs WooCommerce and an active license). A campaign is a discount on all products, chosen categories or chosen products that starts and ends by itself at the times you set. Your stored prices are never changed: when the campaign ends, everything returns to normal and caches are purged automatically (LiteSpeed, WP Rocket, W3TC, WP Super Cache).
افتح أسباب ← حملات العروض (تحتاج ووكومرس وترخيصاً فعّالاً). الحملة خصم على كل المنتجات أو تصنيفات أو منتجات تختارها، يبدأ وينتهي وحده في الوقت الذي تحدده. أسعارك المحفوظة لا تتغير أبداً: عند انتهاء الحملة يعود كل شيء كما كان، ويُفرَّغ الكاش تلقائياً (LiteSpeed وWP Rocket وW3TC وWP Super Cache).

1. Start from a ready template1. ابدأ من قالب جاهز
One click fills the name, discount, dates and bar text: White Friday (last Friday of November), Ramadan, Eid al-Fitr, Eid al-Adha, Weekend offer (Thursday 18:00 → Saturday night) and 24-hour flash sale. Religious dates follow the Umm al-Qura calendar and may differ by a day in your country — you can edit everything before saving.
ضغطة واحدة تملأ الاسم والخصم والتواريخ ونص الشريط: الجمعة البيضاء (آخر جمعة من نوفمبر)، رمضان، عيد الفطر، عيد الأضحى، عرض نهاية الأسبوع (الخميس 18:00 حتى مساء السبت)، وتخفيضات خاطفة 24 ساعة. التواريخ الدينية حسب تقويم أم القرى وقد تختلف يوماً في بلدك، ويمكنك تعديل كل شيء قبل الحفظ.
2. Choose how shoppers get the discount2. اختر طريقة حصول الزبون على الخصم
- Sale price (automatic): prices drop on the shop, product pages, cart and checkout with the old price struck through.
- Coupon code: a WooCommerce coupon is created for you and only works inside the campaign window. The code appears in the top bar with a copy button.
- Percentage or fixed amount. If a product already has its own lower sale price, the better price wins (or skip those products).
- My sale prices: already set sale prices on your products (e.g. a launch offer)? Choose this type to keep them exactly as they are — the campaign only adds the badge with the real percentage, the countdowns and the top bar.
- You can schedule several campaigns ahead; each one runs only in its own window.
- سعر مخفّض (تلقائي): تنخفض الأسعار في المتجر وصفحة المنتج والسلة والدفع، مع شطب السعر القديم.
- كود خصم: يُنشأ كوبون ووكومرس تلقائياً ولا يعمل إلا خلال فترة الحملة، ويظهر الكود في الشريط العلوي مع زر نسخ.
- نسبة مئوية أو مبلغ ثابت. إذا كان للمنتج تخفيض خاص أقل، يُطبَّق السعر الأفضل (أو تجاهل تلك المنتجات).
- أسعار التخفيض في منتجاتي: وضعت أسعار تخفيض لمنتجاتك مسبقاً (مثل عرض إطلاق)؟ اختر هذا النوع لتبقى كما هي تماماً، وتضيف الحملة فقط شارة بالنسبة الحقيقية والعدّادات والشريط العلوي.
- يمكنك جدولة عدة حملات مسبقاً، وكل حملة تعمل في فترتها فقط.
3. What shoppers see3. ما يراه الزبون
- A discount badge on product images (−20%).
- A countdown under the price on the product page.
- A small countdown under the price on product cards during the last 7 days.
- A top bar across the site with the countdown, the code and a button (compact on phones; visitors can close it). The button opens the shop filtered to the products on offer, unless you set another link.
- شارة الخصم على صور المنتجات (-20%).
- عدّاد تنازلي تحت السعر في صفحة المنتج.
- عدّاد صغير تحت السعر في بطاقات المنتجات خلال آخر 7 أيام.
- شريط أعلى الموقع فيه العدّاد والكود وزر (مختصر على الجوال، ويستطيع الزائر إغلاقه). الزر يفتح المتجر مفلترًا على المنتجات التي عليها العرض، ما لم تضع رابطًا آخر.


4. An offer page in seconds4. صفحة عرض في ثوانٍ
Insert the pattern Shop — limited offer with countdown or the shortcode [asbab_sale_products limit="8" columns="4"] on any page. It shows the products of the running campaign with a big countdown and hides itself when no campaign is running. Options: limit, columns, countdown="0", title.
أدرج نمط المتجر — عرض محدود مع عدّاد أو الكود القصير [asbab_sale_products limit="8" columns="4"] في أي صفحة. يعرض منتجات الحملة الحالية مع عدّاد كبير، ويختفي تلقائياً عندما لا توجد حملة. الخيارات: limit وcolumns وcountdown="0" وtitle.
5. Create a campaign with AI in one sentence5. أنشئ حملة بالذكاء الاصطناعي بجملة واحدة
With the AI connection on (see AI: Claude & ChatGPT), just ask: “Make a 25% White Friday offer on the perfumes and gifts categories for three days with a top bar.” Claude uses asbab/list-sale-campaigns, asbab/create-sale-campaign and asbab/manage-sale-campaign (pause, resume, delete). The connected user needs the manage WooCommerce permission.
عند تفعيل ربط الذكاء الاصطناعي (راجع الذكاء الاصطناعي: Claude و ChatGPT) اكتب فقط: «اعمل عرض الجمعة البيضاء بخصم 25% على تصنيفي العطور والهدايا لمدة ثلاثة أيام مع شريط علوي». يستخدم Claude القدرات asbab/list-sale-campaigns وasbab/create-sale-campaign وasbab/manage-sale-campaign (إيقاف، استئناف، حذف). يحتاج المستخدم المتصل صلاحية إدارة ووكومرس.
Visitor dark modeالوضع الداكن للزوار
A moon/sun switch appears automatically in every header. Visitors’ choice is remembered on their device, and there is no colour flash on page load. It works with every style variation because only the neutral colours change — your accent colours stay the same. Configure it in Asbab → Dashboard → Visitor dark mode: show the switch (light by default), follow each visitor’s device setting, or turn it off. To hide the switch in one header only, add the CSS class asbab-no-dark-toggle to that header group.
If your accent is too dark to read on the dark background, Asbab lightens it automatically. A style variation can also define its own dark-mode accent with "settings": { "custom": { "darkAccent": "#FF8F75" } } (used by «Kids Fashion»). The colour chosen in Theme options → Dark mode always wins.
إذا كان لون التمييز داكناً لا يُقرأ على الخلفية الداكنة، يفتّحه أسباب تلقائياً. ويمكن لنمط الألوان أن يحدد لون التمييز الخاص بالوضع الليلي عبر "settings": { "custom": { "darkAccent": "#FF8F75" } } (يستخدمه نمط «أزياء أطفال»). واللون الذي تختاره من خيارات القالب ← الوضع الليلي له الأولوية دائماً.
يظهر زر القمر/الشمس تلقائياً في كل الترويسات، ويُحفظ اختيار الزائر على جهازه دون أي وميض عند تحميل الصفحة. يعمل مع كل أنماط الألوان لأنه يغيّر الألوان المحايدة فقط وتبقى ألوانك المميزة كما هي. اضبطه من أسباب ← لوحة التحكم ← الوضع الداكن للزوار: إظهار الزر (يبدأ فاتحاً)، أو اتباع إعداد جهاز الزائر، أو الإيقاف. لإخفاء الزر من ترويسة معيّنة أضف الفئة asbab-no-dark-toggle لمجموعة تلك الترويسة.
Forms: contact, booking & cash-on-delivery ordersالنماذج: تواصل وحجز وطلب بالدفع عند الاستلام
| Edition | النسخة | How forms are provided | طريقة توفير النماذج |
|---|---|---|---|
| ThemeForest | Install the companion plugin Asbab Toolkit (forms + Mega Menu block + AI abilities) from the /plugins folder of your download (Plugins → Add New → Upload). The theme shows a reminder until it is installed. | ثبّت الإضافة المرافقة Asbab Toolkit (النماذج + بلوك القائمة الضخمة + قدرات الذكاء الاصطناعي) من مجلد /plugins في حزمة التحميل (الإضافات ← أضف جديد ← رفع). يظهر تنبيه في لوحة التحكم حتى تثبيتها. | |
| Asbab (direct) | أسباب (مباشر) | Built into the theme — nothing to install. | مدمجة داخل القالب — لا حاجة لتثبيت شيء. |
- Insert the Asbab Form block, or a ready-made pattern from Asbab: Forms. In the block sidebar choose the form type (Contact, Booking, Order), the services or product options (one per line), button text and success message.
- Every submission is saved in Form entries (admin menu) and emailed to the address in Asbab → Forms & settings. Each entry has a “Reply on WhatsApp” button.
- WhatsApp hand-off: turn on “Open WhatsApp with the details after sending” to send the customer to your WhatsApp with the order details pre-filled — perfect for cash-on-delivery stores.
- Spam protection is built in (honeypot, minimum fill time, rate limiting). For SMTP delivery use any SMTP plugin.
- أدرج بلوك نموذج أسباب أو نمطاً جاهزاً من تصنيف أسباب: النماذج. من الشريط الجانبي اختر نوع النموذج (تواصل، حجز، طلب)، والخدمات أو خيارات المنتج (خيار في كل سطر)، ونص الزر ورسالة النجاح.
- تُحفظ كل رسالة في رسائل النماذج (قائمة لوحة التحكم) وتُرسل إلى البريد المحدد في أسباب ← النماذج والإعدادات، ولكل رسالة زر "الرد عبر واتساب".
- المتابعة عبر واتساب: فعّل "فتح واتساب مع البيانات بعد الإرسال" لينتقل العميل إلى واتساب متجرك مع تفاصيل الطلب جاهزة — مثالي لمتاجر الدفع عند الاستلام.
- الحماية من السبام مدمجة (حقل مخفي، حد أدنى لوقت التعبئة، تحديد عدد المحاولات). لضمان وصول البريد استخدم أي إضافة SMTP.
WhatsApp chatمحادثة واتساب
Open Asbab → WhatsApp. Add one or more numbers (e.g. Sales, Support, a second branch) and the ready-made messages visitors can tap, such as “Hello, I would like to ask about {title}”. Placeholders: {title} page or product name, {price} product price, {url} page link, {site} site name. Turn on the floating chat button, choose its side and texts, and (WooCommerce) the “Ask about this product on WhatsApp” button. With several numbers the visitor first chooses who to talk to.
افتح أسباب ← واتساب. أضف رقماً أو أكثر (مثلاً المبيعات، الدعم الفني، فرع ثانٍ) والرسائل الجاهزة التي يختارها الزائر بضغطة، مثل «مرحباً، أريد الاستفسار عن {title}». المتغيرات: {title} اسم الصفحة أو المنتج، {price} سعر المنتج، {url} رابط الصفحة، {site} اسم الموقع. فعّل زر المحادثة العائم واختر جهته ونصوصه، وزر «اسأل عن هذا المنتج عبر واتساب» في صفحات ووكومرس. عند وجود أكثر من رقم يختار الزائر أولاً مع من يتحدث.
Anywhere: link any button to #whatsapp to open the chat window; buttons linking to https://wa.me/ without a number use your first number automatically; or use [asbab_whatsapp message="Hello, I want to know the course prices" label="Ask on WhatsApp"].
في أي مكان: اجعل رابط أي زر #whatsapp ليفتح نافذة المحادثة، والأزرار التي رابطها https://wa.me/ بدون رقم تستخدم رقمك الأول تلقائياً، أو استخدم [asbab_whatsapp message="مرحباً، أريد معرفة أسعار الدورة" label="اسأل عبر واتساب"].
Build & manage your site with Claude or ChatGPTابنِ موقعك وأدِره بواسطة Claude أو ChatGPT
Asbab registers 13 abilities with the WordPress Abilities API (WordPress 6.9+). Any AI assistant connected through MCP can discover and use them — always as a logged-in WordPress user and only within that user’s permissions. You can turn them off in Asbab → Forms & settings.
يسجّل أسباب 13 قدرة في واجهة القدرات (Abilities API) في ووردبريس 6.9 فأحدث. أي مساعد ذكاء اصطناعي متصل عبر MCP يستطيع اكتشافها واستخدامها — دائماً باسم مستخدم ووردبريس مسجّل وضمن صلاحياته فقط. يمكنك إيقافها من أسباب ← النماذج والإعدادات.
| Ability | What it does | ماذا تفعل |
|---|---|---|
asbab/get-site-overview | Pages, homepage, menu, style, settings | الصفحات، الرئيسية، القائمة، النمط، الإعدادات |
asbab/list-layouts | Lists the 70+ ready-made sections and full pages | عرض أكثر من 70 قسماً وصفحة جاهزة |
asbab/create-page | Builds a page from layouts; can set it as homepage and add it to the menu | إنشاء صفحة من التصاميم، وتعيينها رئيسية وإضافتها للقائمة |
asbab/get-page-content · asbab/update-page | Reads every text, replaces texts with your real content, adds sections, publishes | قراءة كل النصوص واستبدالها بمحتواك الحقيقي، إضافة أقسام، النشر |
asbab/get-design-options · asbab/set-style | Colour schemes, fonts and brand colours | أنماط الألوان والخطوط وألوان العلامة التجارية |
asbab/set-site-identity | Site name, tagline, logo, site icon | اسم الموقع والوصف والشعار والأيقونة |
asbab/update-menu | Header menu items, including mega menus | عناصر القائمة بما فيها القوائم الضخمة |
asbab/edit-template-part | Texts in header, footer and mega menu panels | نصوص الترويسة والتذييل ولوحات القائمة الضخمة |
asbab/set-contact-details | WhatsApp number (updates every WhatsApp button) and notification email | رقم واتساب (يحدّث كل أزرار واتساب) وبريد الإشعارات |
asbab/set-dark-mode | Dark mode switch / auto / off | الوضع الداكن: زر / تلقائي / إيقاف |
asbab/list-form-entries | Latest messages, bookings and orders | آخر الرسائل والحجوزات والطلبات |
asbab/list-sale-campaigns · asbab/create-sale-campaign · asbab/manage-sale-campaign | Scheduled sale campaigns with countdown: list, create in one sentence, pause, resume or delete (WooCommerce) | حملات العروض المجدولة مع العدّاد: عرضها، إنشاؤها بجملة واحدة، إيقافها أو استئنافها أو حذفها (ووكومرس) |
Easiest way (1.0.3+): open Asbab → AI connection, choose your AI app and copy the one server URL into Claude (Settings → Connectors → Add custom connector) or ChatGPT. Your site opens in the browser — sign in and click “Allow”. No extra plugin, no password to copy. The manual steps below are only needed for tools without OAuth sign-in.
الطريقة الأسهل (من الإصدار 1.0.3): افتح أسباب ← ربط الذكاء الاصطناعي، اختر تطبيقك وانسخ رابط الخادم الواحد إلى Claude (الإعدادات ← الموصلات ← إضافة موصل مخصص) أو ChatGPT. ستفتح صفحة من موقعك — سجّل الدخول واضغط «السماح». بدون أي إضافة إضافية وبدون نسخ كلمات مرور. الخطوات اليدوية التالية مطلوبة فقط للأدوات التي لا تدعم تسجيل الدخول عبر OAuth.
1. Prepare WordPress1. جهّز ووردبريس
- Make sure you run WordPress 6.9 or newer and (ThemeForest edition) that Asbab Toolkit is active.
- Install and activate the free MCP Adapter plugin (Plugins → Add New → search “MCP Adapter”). Any other MCP plugin built on the Abilities API also works.
- Recommended: create a separate user for the AI (Administrator for full site building, Editor for content only), then Users → Profile → Application Passwords → name it “Claude” → Add and copy the password (shown once).
- تأكد أن ووردبريس 6.9 أو أحدث، وأن إضافة Asbab Toolkit مفعّلة (نسخة ThemeForest).
- ثبّت وفعّل إضافة MCP Adapter المجانية (الإضافات ← أضف جديد ← ابحث عن "MCP Adapter"). أي إضافة MCP أخرى مبنية على واجهة القدرات تعمل أيضاً.
- يُنصح بإنشاء مستخدم خاص بالذكاء الاصطناعي (مدير لبناء الموقع كاملاً، أو محرر للمحتوى فقط)، ثم المستخدمون ← الملف الشخصي ← كلمات مرور التطبيقات ← سمّها "Claude" ← إضافة وانسخ كلمة المرور (تظهر مرة واحدة).
2. Connect Claude (Claude Desktop)2. اربط Claude (تطبيق Claude Desktop)
Install Node.js. In Claude Desktop open Settings → Developer → Edit Config and add (replace the three values), then quit Claude completely and reopen it:
ثبّت Node.js. في Claude Desktop افتح الإعدادات ← Developer ← Edit Config وأضف ما يلي (مع استبدال القيم الثلاث)، ثم أغلق Claude تماماً وأعد فتحه:
{
"mcpServers": {
"my-asbab-site": {
"command": "npx",
"args": ["-y", "@automattic/mcp-wordpress-remote@latest"],
"env": {
"WP_API_URL": "https://YOUR-SITE.com/wp-json/mcp/mcp-adapter-default-server",
"WP_API_USERNAME": "your-username",
"WP_API_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx",
"OAUTH_ENABLED": "false"
}
}
}
}
Claude Code: claude mcp add my-asbab-site --env WP_API_URL=… --env WP_API_USERNAME=… --env WP_API_PASSWORD=… -- npx -y @automattic/mcp-wordpress-remote@latest
Claude Code: claude mcp add my-asbab-site --env WP_API_URL=… --env WP_API_USERNAME=… --env WP_API_PASSWORD=… -- npx -y @automattic/mcp-wordpress-remote@latest
3. Connect ChatGPT or claude.ai (web)3. اربط ChatGPT أو claude.ai (الويب)
Web connectors in ChatGPT (Developer mode → Create connector) and claude.ai (Settings → Connectors → Add custom connector) need a public HTTPS MCP URL with OAuth sign-in. Use an MCP plugin that offers OAuth and the Abilities API, paste the MCP URL it gives you, and sign in with your WordPress account. Menu names may differ slightly as these apps update.
موصلات الويب في ChatGPT (وضع المطوّر ← إنشاء موصل) وفي claude.ai (الإعدادات ← الموصلات ← إضافة موصل مخصص) تحتاج رابط MCP عاماً عبر HTTPS مع تسجيل دخول OAuth. استخدم إضافة MCP تدعم OAuth وواجهة القدرات، والصق رابط MCP الذي تعطيك إياه، ثم سجّل الدخول بحساب ووردبريس. قد تختلف أسماء القوائم قليلاً مع تحديثات هذه التطبيقات.
4. Example requests4. أمثلة على الطلبات
- “Build a homepage for my dental clinic ‘Al Noor’ in Riyadh using the clinic layout, replace all demo texts with real ones, and publish it as the homepage.”
- “Switch the site to the Oud Gold style, use the Cairo font and set the brand colour to #8A5A2B.”
- “Set my WhatsApp number to 966500000000 and add Services and Store mega menus to the header.”
- “Show me today’s cash-on-delivery orders.”
- “Make a 20% Ramadan offer on the whole store for the whole month, with a top bar.”
- «ابنِ صفحة رئيسية لعيادة أسنان "النور" في الرياض بتصميم العيادات، واستبدل كل النصوص التجريبية بنصوص حقيقية، وانشرها كصفحة رئيسية.»
- «حوّل الموقع إلى نمط الذهبي — عود، واستخدم خط Cairo، واجعل لون العلامة #8A5A2B.»
- «ضع رقم واتساب 966500000000، وأضف قائمتين ضخمتين للخدمات والمتجر في الترويسة.»
- «اعرض لي طلبات الدفع عند الاستلام لهذا اليوم.»
- «اعمل عرض رمضان بخصم 20% على كل المتجر طوال الشهر مع شريط علوي.»
Safety: new pages are drafts unless you ask to publish; texts are replaced without breaking the design; every action is limited to the connected user’s role. Revoke access any time by deleting the application password.
الأمان: الصفحات الجديدة تُحفظ كمسودات ما لم تطلب نشرها؛ النصوص تُستبدل دون إفساد التصميم؛ وكل إجراء محدود بصلاحيات المستخدم المتصل. يمكنك إلغاء الوصول في أي وقت بحذف كلمة مرور التطبيق.
Sales page & WhatsApp orderingصفحة البيع والطلب عبر واتساب
The Product landing page layout is built for single-product stores and cash-on-delivery offers: product hero with price/discount, benefits, video, reviews, comparison table, “how to order” steps, final offer and FAQ. Use it with the Page (Store header) template, or choose Single product landing page in the one-click demo importer.
تصميم صفحة هبوط المنتج مخصص لمتاجر المنتج الواحد وعروض الدفع عند الاستلام: واجهة المنتج مع السعر والخصم، المزايا، فيديو، آراء العملاء، جدول مقارنة، خطوات الطلب، العرض النهائي والأسئلة الشائعة. استخدمه مع قالب صفحة (ترويسة المتجر)، أو اختر صفحة هبوط لمنتج واحد من أداة إنشاء الصفحات التجريبية.

- WhatsApp buttons: any button can use the WhatsApp style. Set the link to
https://wa.me/9665XXXXXXXX(country code, no + or zeros). Add?text=for a pre-filled message. - Floating WhatsApp button: insert the “Floating WhatsApp button” pattern once inside the Footer template part — it then appears on every page (icon-only on phones).
- Order buttons: link “Order now” to your WooCommerce product, checkout (
/?add-to-cart=ID) or a form.
- أزرار واتساب: أي زر يمكن أن يأخذ نمط واتساب. اجعل الرابط
https://wa.me/9665XXXXXXXX(رمز الدولة بدون + أو أصفار)، ويمكن إضافة?text=لرسالة جاهزة. - زر واتساب العائم: أدرج نمط "زر واتساب عائم" مرة واحدة داخل جزء التذييل، وسيظهر في كل الصفحات (أيقونة فقط على الجوال).
- أزرار الطلب: اربط زر "اطلب الآن" بمنتج ووكومرس أو صفحة الدفع (
/?add-to-cart=ID) أو بنموذج طلب.
Block styles & helper classesأنماط البلوكات وفئات CSS المساعدة
Select a block and open the Styles tab in the sidebar:
حدد أي بلوك وافتح تبويب الأنماط في الشريط الجانبي:
| Block | Styles |
|---|---|
| Group / Column | Card · Outlined · Glass · Card (Hover lift) |
| Button | With arrow (flips in RTL) · Soft · Text link · WhatsApp · Play button |
| Table | Comparison |
| Heading / Paragraph | Eyebrow · Accent underline · Lead |
| List | Checkmarks · No bullets |
| Image | Shadow · Framed |
| Details | FAQ accordion |
| Quote | Testimonial |
| Columns / Separator / Post terms / Nav link | Divided · Short accent · Pills · Underline on hover |
Helper classes (Block → Advanced → Additional CSS class):
فئات مساعدة (البلوك ← متقدم ← فئة CSS إضافية):
| Class | Effect | التأثير |
|---|---|---|
asbab-reveal | Fade-up animation when scrolled into view | ظهور متحرك عند التمرير |
asbab-hide-mobile / asbab-show-mobile | Hide on / show only on phones | إخفاء على الجوال / إظهار على الجوال فقط |
asbab-muted | Softer, secondary text | نص ثانوي أخف |
asbab-badge | Small highlighted label | شارة صغيرة مميزة |
asbab-mirror-rtl | Mirror an image in Arabic (for arrows/illustrations) | عكس الصورة في العربية (للأسهم والرسومات) |
Replacing images & iconsاستبدال الصور والأيقونات
Demo images are original abstract artwork so the theme looks complete out of the box. Click any image → Replace to use your own photos. Icons are image blocks: click → Replace and upload any SVG or PNG; the coloured tile follows your accent colour.
الصور التجريبية رسومات تجريدية أصلية ليظهر القالب مكتملاً من البداية. اضغط على أي صورة ← استبدال لاستخدام صورك. الأيقونات عبارة عن بلوكات صور: اضغط ← استبدال وارفع أي SVG أو PNG، والخلفية الملونة تتبع لون موقعك.
Child theme & custom CSSقالب فرعي و CSS مخصص
Small tweaks: Editor → Styles → ⋮ → Additional CSS. For larger changes create a child theme:
للتعديلات البسيطة: المحرر ← الأنماط ← ⋮ ← CSS إضافي. للتعديلات الكبيرة أنشئ قالباً فرعياً:
/* wp-content/themes/asbab-child/style.css */ /* Theme Name: Asbab Child Template: asbab */
Copy any file from templates/, parts/ or patterns/ into the child theme to override it. Updates to Asbab will not overwrite your changes.
انسخ أي ملف من templates/ أو parts/ أو patterns/ إلى القالب الفرعي لتعديله. تحديثات أسباب لن تمسح تعديلاتك.
FAQأسئلة شائعة
I moved my site to a new domain (or from a temporary hosting address). Will updates keep working?
نقلت موقعي إلى دومين جديد (أو من رابط الاستضافة المؤقت). هل تستمر التحديثات؟
Yes. From version 1.4.15 the license re-activates the new address automatically while your license has a free site. Temporary hosting addresses (for example *.hostingersite.com) never use a slot. If your license is full, deactivate the old site in My account → My licenses on market.asbab.online, then click Re-activate on this site in Asbab → License.
نعم. من الإصدار 1.4.15 يُعاد تفعيل الترخيص على العنوان الجديد تلقائيًا ما دام في ترخيصك مكان فارغ، وروابط الاستضافة المؤقتة (مثل *.hostingersite.com) لا تأخذ مكانًا أبدًا. وإذا كان ترخيصك ممتلئًا، ألغِ تفعيل الموقع القديم من حسابي ← تراخيصي في أسباب ماركت، ثم اضغط أعد التفعيل على هذا الموقع من أسباب ← الترخيص.
Do I need Elementor or another page builder?
هل أحتاج Elementor أو منشئ صفحات آخر؟
No. Asbab is built for the native WordPress Site Editor — faster pages and no extra plugins.
لا. أسباب مبني لمحرر ووردبريس الأصلي — صفحات أسرع وبدون إضافات إضافية.
How do I add a contact form?
كيف أضيف نموذج تواصل؟
Install any form plugin (Contact Form 7, WPForms, Fluent Forms) and insert its block in the Contact section.
ثبّت أي إضافة نماذج (Contact Form 7 أو WPForms أو Fluent Forms) وأدرج بلوكها في قسم التواصل.
My changes in the Site Editor disappeared after switching style.
تعديلاتي اختفت بعد تغيير النمط.
Choosing a style variation replaces global colours/fonts only. Page content and template edits are never affected. Use Styles → Revisions to go back.
اختيار نمط ألوان يستبدل الألوان والخطوط العامة فقط، ولا يمس محتوى الصفحات أو تعديلات القوالب. يمكنك الرجوع من الأنماط ← المراجعات.
How do I reset a template?
كيف أعيد قالباً لحالته الأصلية؟
Editor → Templates → hover the template → ⋮ → Reset.
المحرر ← القوالب ← مرّر على القالب ← ⋮ ← إعادة تعيين.
Credits & licensesالحقوق والتراخيص
- Asbab theme code — GPLv2 or later. © 2026 Haytham Naser.
- Fonts — Readex Pro, Tajawal, Cairo, Noto Kufi Arabic, IBM Plex Sans Arabic — SIL Open Font License 1.1 (license files in
assets/fonts). - Images & icons — original works created for Asbab, GPLv2 or later.
Changelogسجل التغييرات
1.4.52 — Shop categories redesigned: “All products”, then a card per main category with an icon and the number of its products (sub-categories included, each product counted once, hidden products left out). A category with sub-categories opens to them as cards, two per row; deeper levels are marked; the category being viewed is highlighted in the brand colour. Category icons: choose one per category (Products → Categories), or let the theme pick one from the name. “Open the side cart after a product is added” now works on product pages too: the product is added without reloading the page, then the side cart opens with it.
1.4.50 — Shop categories as a tree: main categories open to their sub-categories (automatic when your categories have sub-categories; Theme options → Store → Filters). New option: open the side cart after a product is added (instead of the notification). New option: hide the product tags on the product page. Phones: widgets of the “Shop sidebar” area show under the products instead of above them. The side cart's hidden buttons stay out of reach of keyboards and Google even when a cache plugin delays scripts (LiteSpeed); the announcement bar and header language menu scripts are kept from being delayed too. Arabic for WooCommerce words its language pack has not translated yet (“Your cart is empty”, “Return to shop”, “Start shopping”). Search results page title: “Search results for “…”” (when no SEO plugin sets the title).
1.4.49 — Header language switcher: with Asbab Lingo 1.9 or later it shows the switcher designed in Asbab Lingo → Language switcher (flags, buttons, links).
1.4.48 — Product image: zoom under the mouse on computers, and a click (or the zoom button) opens it full screen again — a layer over the image was catching the clicks. Products with options: before an option is chosen the add-to-cart button says what is missing (“Choose Size first”); tapping it points to that option instead of showing an alert. New: trust row under the product buttons (delivery, returns, secure payment) with your own texts (Theme options → Store). New: size guide — pick a page with your size chart for the store or per product category; a “Size guide” link on the product page opens it in a window. Phones: the offer bar and the announcement bar take turns in one slot instead of stacking.
1.4.47 — Product page gallery redesigned: the image frame takes the main photo's own shape (no grey bars beside tall photos), photos fill the frame, four even thumbnails under it with the current one highlighted, arrows appear only on hover, and a small zoom button in the corner.
1.4.46 — Header: on laptops (1200–1500px) the menu and the header button stay on one line; on tablets and small laptops (600–1199px) the menu opens from the ☰ button. The opened phone/tablet menu covers the announcement and offer bars, so its close button can always be tapped.
1.4.45 — Shop filters: attribute titles (colour, size…) use the attribute's translated name on multilingual sites.
1.4.44 — Multilingual sites (Asbab Lingo, or Polylang): a language switcher in the header (Theme options → Header → Language switcher); on phones the languages are listed at the top of the opened menu. The header button, the announcement bar, the WhatsApp chat texts and the sale-campaign bar can be translated per language (wpml-config.xml). Sale campaigns also apply to the translations of the chosen products and categories. The wishlist page follows the language being read. Left-to-right languages: the announcement bar arrow points the right way, and the opened phone menu starts on the left.
1.4.43 — Sticky header: the header now really stays at the top while scrolling, in all four header layouts and on phones (its template-part wrapper was exactly as tall as the header, so it had no room to stick). In the Centered and Shop layouts the top row (contact bar / announcement) scrolls away and the rest stays. «Theme options → Header → Sticky header» still turns it off.
1.4.42 — Breadcrumbs: the block no longer prints its own BreadcrumbList structured data when an SEO plugin already prints one (Yoast SEO, Rank Math with its breadcrumbs enabled, All in One SEO, The SEO Framework, Slim SEO, SEOPress Pro), so the page never carries two lists. The visible breadcrumb trail is unchanged. In that case WooCommerce's own copy on shop and category pages is dropped as well. Developers can force it either way with the filter `asbab_breadcrumb_schema`.
1.4.41 — Free shipping bar: it now reads the free shipping minimum from the customer's own shipping zone (not the lowest one in any zone), and hides itself when that zone has no free shipping, so it never promises free shipping the checkout will not give. It also follows a change of shipping address in the cart and checkout. Free shipping bar: when the goal is reached, free shipping is now selected for the customer automatically (WooCommerce kept the previously chosen paid rate, so the bar said «you get free shipping» while the totals still charged shipping). Products per page (12 / 24 / 36): the switch now keeps the filters the visitor chose (category, price, size…) instead of resetting them.
1.4.40 — Free shipping bar on the cart page: after changing a quantity it now shows the new amount right away (it showed the amount of the previous change, one step behind).
1.4.39 — AI connection: new ability «Set store features». Claude (or ChatGPT) can turn the store features on or off in one sentence — wishlist, quick view, second image on hover, variation swatches, added-to-cart notification, sticky add-to-cart bar, free shipping bar, products-per-page switch — and set the free shipping minimum and the product page layout.
1.4.38 — Updates: a new Asbab release now shows up in Dashboard → Updates and on the Themes screen within minutes. The update check is cached for 1 hour instead of 3, it is refreshed when you open the Themes or Updates screen (if older than 10 minutes) and always on «Check again», and the result is added as soon as it is refreshed instead of waiting for WordPress' own 12-hour theme check.
1.4.37 — (1) WhatsApp button: always has an accessible name (aria-label from the button text, or «Chat with us on WhatsApp»), points to its chat window (aria-controls), aria-expanded follows open/close, and on phones the text is visually hidden instead of removed (fixes the PageSpeed «Buttons do not have an accessible name» warning). (2) Floating buttons (WhatsApp, sticky add-to-cart, back to top) now step aside while the mini-cart drawer, the mobile menu, the product filters or the quick view is open, so they never cover «Checkout»; the mini-cart drawer sits above them. (3) The closed mini-cart drawer layer is really hidden (visibility), so it no longer stays in the accessibility tree or catches focus. (4) Shop sidebar: scrolls with the page by default and only stays fixed while it fits on the screen; long filter lists are no longer cut or scrolled inside the page. (5) Old classic-editor content (fixed-width [caption], fixed-size images, wide tables and iframes) in posts and product descriptions no longer makes the page scroll sideways on phones. (6) New: second product image on hover in product cards (blocks and classic loops). Uses a gallery image whose file name contains «-hover», otherwise the first gallery image; mouse devices only, respects reduced motion, skipped for single-image products. On by default (Theme options → Store).
1.4.36 — Dark mode: no more «Array to string conversion» warning in the error log on styles without their own dark-mode accent. AI connection: when Claude applies a style, the colour, font and size names are saved in the site language (the palette editor showed «Accent» instead of «اللون المميز»).
1.4.35 — Licence: when the licence server cannot be reached (timeout, firewall, DNS), the update check no longer stops the site with a fatal error; it simply tries again later.
1.4.34 — Arabic: the dark mode settings use one name everywhere («الوضع الداكن») instead of mixing «الليلي» and «الداكن».
1.4.33 — Variable products: the product photo changes as soon as the colour is chosen, before the size or age (when the options chosen so far all lead to one photo). Price and the add-to-cart button still wait for a full choice.
1.4.32 — Shop filters: attribute values (size, age, colour…) follow the order set in Products → Attributes (custom order by default) instead of the number of products, so «2, 4, 6 years» appear in order.
1.4.31 — Dark mode: a style variation can set its own dark-mode accent (settings.custom.darkAccent in the style JSON). «Kids Fashion» uses coral in dark mode instead of a pale navy. The colour chosen in Theme options → Dark mode still wins.
1.4.30 — «Kids Fashion» style variation is now navy and coral (neutral for girls and boys, warm with winter photos). The previous black and yellow look can still be set in Styles. New style variation «Kids Boutique»: sage green and blush pink. Kids homepage: the WhatsApp channel box follows the style colours. Dark mode: links in dark sections (footer, contrast-coloured groups) no longer disappear on hover.
1.4.29 — New homepage layout «Kids fashion store» (Asbab → Dashboard → Quick start, and the setup wizard): hero with arch photo, categories, shop by age, new arrivals, wholesale and shipping offers, how to order, reviews and a WhatsApp channel call to action. New style variation «Kids Fashion» (charcoal and yellow, Tajawal, rounded buttons). Dark mode: when the accent is black or charcoal, the palette's highlight colour (Accent 3) is used in dark mode instead of a grey tint. Restaurant homepage: fixed two blocks (rounded image and cover) that the editor reported as invalid.
1.4.28 — «Fit to screen» product layout: even 16px spacing between the title, price, description, cart, wishlist button and any boxes added below them (they were touching).
1.4.27 — «Fit to screen» product layout: products with a single image (no thumbnails) also fit the screen height on computers.
1.4.26 — New «Product page layout» option (Theme options → Store features): «Fit to screen» shows the image, title, price, short description and buttons without scrolling. Computers: the image follows the screen height, thumbnails move beside it, the details stay in view. Phones: full-width image, no thumbnail row (swipe or arrows) and the add-to-cart bar visible from the start.
1.4.25 — Product image shape: the WooCommerce gallery frame now follows the chosen shape too (4:5 images were cut at the bottom on phones). Sale campaign countdown: days → seconds in the reading direction on left-to-right sites (English, Turkish). Sale badge: classic templates get the same pill as the blocks (no more olive WooCommerce circle), badges sit opposite the wishlist / quick-view buttons, and a new «Sale badge colour» option. Sale campaigns: filters asbab_campaign_display and asbab_campaign_countdown_labels so multilingual sites can show campaign texts in the visitor's language. License: «Release the license and activate it here» button; the license server frees addresses on the same domain and sites silent for 30 days automatically (moving to a new domain no longer blocks updates).
1.4.24 — Quick view: the product image is shown whole (no more cut heads and feet on tall fashion photos). New option «Product image shape» (Theme options → Store features): square, portrait 4:5, 3:4, tall 2:3 or the original shape, for the product gallery frame and thumbnails. The built-in AI (MCP) server steps aside automatically when the Asbab MCP plugin is active, so the two never answer the same connection. Sharing tags: printed later and skipped when anything else already printed og: tags (a plugin, a child theme); new switch in Theme options → General. Dark mode: a dark accent colour (black, navy…) is replaced by a readable lighter shade, with dark text on accent buttons; or choose your own «Accent colour in dark mode». Back-to-top button: position option (automatic opposite the WhatsApp button, right, left or hidden) and a reading-progress ring. Place the light/dark switch yourself: give an empty block in the header the class «asbab-dark-toggle-slot». Updates: the update check is cached 3 hours instead of 12, and «Check again» on Dashboard → Updates asks the server right away. Turkish translation (tr_TR) of the theme and toolkit screens and front-end texts.
1.4.23 — Blog: new «Post image shape» option (Theme options → Blog): wide 16:9 (new default), 3:2, 4:3, square, or the original image without cropping. It applies to blog cards, archives, related posts and post lists. Blog list view and the featured post now show the whole image in the chosen shape instead of cropping it to the text height.
1.4.22 — Dark mode: the theme no longer forces its link colour (with !important) on buttons and links inside page content, so buttons and cards built with their own colours keep them.
1.4.21 — Dark mode: white buttons on image covers stay white (they turned dark grey), shop-card buttons get an accent tint instead of a dark-grey fill, and links in the header, footer and sidebars use the lighter accent tone.
1.4.20 — Shop grids: product cards share the same height, so the add-to-cart buttons stay on one line even when a card shows a sale countdown or a two-line title.
1.4.19 — Dark mode: the green offer badge and the highlighted column of the comparison table keep readable text.
1.4.18 — Product gallery: every image sits in the same square frame (mixed image sizes no longer jump), square thumbnails, and no thin edge of the neighbouring slide. Readability: sale countdown labels and the shop result count now meet WCAG AA contrast.
1.4.17 — Dark mode readability: filled buttons keep white text, links, prices and link/outline buttons use a lighter accent tone, WooCommerce checkout/cart fields follow the dark palette, struck prices and blog meta use a readable muted colour, sale badges and countdown labels have stronger contrast.
1.4.16 — Fix: Asbab forms (contact, booking, cash-on-delivery order) did not load their script, so submissions were not sent and the WhatsApp hand-off did not open. They work again.
1.4.15 — Updates: when the site address changes (for example from a temporary hosting address to your real domain), the license re-activates automatically so updates keep downloading. If it cannot, a clear notice with a “Re-activate” button appears.
1.4.14 — Fix: the wishlist counter in the header showed “1” for logged-in customers with an empty wishlist.
1.4.13 — Sale campaigns: new discount type “My sale prices” — keeps the sale prices you set on each product and adds the badge (real %), countdowns and top bar.
1.4.12 — Sale campaigns: the top-bar button opens the shop filtered to the products on offer by default.
1.4.11 — Sale campaigns: ready seasonal templates (White Friday, Ramadan, Eid al-Fitr, Eid al-Adha, weekend, 24-hour flash sale) with Umm al-Qura dates. Sale campaigns: small countdown under the price on product cards in the last 7 days. AI: new abilities to list, create, pause and delete sale campaigns in one sentence.
1.4.10 — Sale campaigns: compact top bar on phones.
1.4.9 — New: Sale campaigns (Asbab → Sale campaigns). Schedule a percentage or fixed discount on all products, chosen categories or chosen products — as an automatic sale price or a coupon code. It starts and ends by itself and never changes your stored prices. Shoppers see a discount badge (−20%), a countdown under the price, an optional top bar with the countdown and code, and the new “Shop — limited offer with countdown” pattern. Several campaigns can be scheduled ahead (White Friday, Ramadan, Eid…). Page caches are purged automatically when a campaign starts or ends.
1.4.8 — Placeholder phone numbers in the restaurant layout and the AI examples now use X digits (+966 5X XXX XXXX), so no real number is ever shipped.
1.4.7 — Restaurant home layout rebuilt as a complete page: real food photos, a full menu with prices, reviews, a kitchen gallery, opening hours and WhatsApp ordering (same as the live demo). Default footer texts are now neutral and fit any business. Arabic theme screenshot. Fix: no PHP notice when the heading font is not customised.
1.4.6 — Sharing tags: account, cart and checkout pages use the site description, leftover shortcodes never appear in descriptions, and pages without an image share the home page's featured image.
1.4.5 — Faster pages: images inside the mega menu no longer take loading priority from the page hero, and the heading font is preloaded so titles don't shift when it loads. Sharing and search: meta description, Open Graph and Twitter card tags (featured image, page summary) when no SEO plugin is active. Pages now have a summary (excerpt) field. Accessibility: the closed mini-cart drawer is no longer reachable by keyboard; muted text stays readable on coloured sections. Dark mode: newsletter box in the blog sidebar uses the dark palette. AI page editing: replacements that contain a fragment of HTML are refused (listed as "rejected") instead of saving broken markup.
1.4.4 — ThemeForest edition: block, post type and shortcode registration moved to the Asbab Toolkit companion plugin (1.3.0), as marketplace rules require. The theme keeps all designs; without the plugin the theme still works and simply hides those blocks. Newsletter subscribers and their CSV export are now limited to administrators, and the export protects against spreadsheet formulas. Smaller image versions for the abstract artwork set; image size cache refreshes when images change.
1.4.3 — Product pages add to the cart instantly (no page reload) and show the added-to-cart notification. Fixed: Theme options lost the line breaks of multi-line fields (about text, social links) when another tab was saved. Fixed: a failing cart request on the cart and checkout pages (WooCommerce cart store missing its API address). Fixed: block validation warning for the product gallery arrows in the single product template. Dark mode: form fields, login, search boxes and the WhatsApp product button now follow the dark colours.
1.4.2 — The Asbab menu now sits right under Dashboard in the WordPress admin sidebar.
1.4.1 — Shop: choose how many products appear per page (Theme options → Store features), with an optional visitor selector (e.g. 12 / 24 / 36) next to the sorting. Page numbers keep the visitor's choice.
1.4.0 — New blog layout: post cards with a grid/list switch (remembered per visitor), a large featured post and breadcrumbs (Home / Blog / Category / Post). Blog sidebar: search, about card with social links, categories with counts, most read posts (automatic view counter), latest posts, newsletter form, tags and a promo banner. Single posts can show the sidebar too. New "Blog" tab in Theme options, new Popular posts, Newsletter and Breadcrumbs blocks, and newsletter subscribers in Users → Subscribers with CSV export. Related posts no longer include the post you are reading.
1.3.2 — Breadcrumbs on product and category pages now include the shop page: Home / Shop / Category / Product.
1.3.1 — Product gallery: thumbnails sit under the main image, and clicking a thumbnail now shows it in Arabic (right-to-left) sites.
1.3.0 — New shop page with a sidebar: product search and instant filters for categories, price (slider), brands, attributes such as colour and size (with colour dots), rating and availability. On phones the filters open from a "Filters" button. Asbab → Theme options → Store features: sidebar at the start, end or off, products per row (2–5) and which filters to show.
1.2.2 — Product pages with variation swatches no longer scroll sideways on phones. Countdown fits on one row on phones.
1.2.1 — Countdown units follow the reading direction (days first in Arabic). Sticky add-to-cart bar no longer widens the page on phones. Site title stays on one line in the header; tighter header icons on phones.
1.2.0 — New Asbab Library inside the editor: a green "Asbab Library" button in the post and site editor opens every Asbab section and full page with live previews in your colours, categories and search — one click inserts it. Also in the top toolbar: Customize Asbab → New page from the Asbab Library. New blocks in the "Asbab" category: Countdown (offers and launches), Animated number (stats that count up) and Tabs.
1.1.0 — New setup wizard (Asbab → Setup wizard): site name, logo and icon, business type, colours and fonts, header, WhatsApp, dark mode and ready-made pages in five steps. Opens automatically after activating the theme. New store features, built in (Asbab → Theme options → Store features): wishlist with a wishlist page and header counter, variation swatches with colour circles, quick view, added-to-cart notification, sticky add-to-cart bar and a free shipping progress bar. Centered header: menu, account and cart now sit on one row. Fixed Arabic menu labels created by the demo pages.
1.0.9 — New Asbab → Theme options: pick a header style (classic, centered, transparent, shop) with one click, show or hide search, cart, account and the call-to-action button, change the button text and link, and set the logo width. Announcement bar above the header with link, colours and a close button. Classic WordPress menus (Appearance → Menus) and widget areas: sidebar, shop sidebar and footer widgets, plus a new "Widget area" block.
1.0.8 — WhatsApp: numbers are checked as you type (country code required), a Test button per number, and the product page button is aligned full width under Add to cart.
1.0.7 — New Asbab → WhatsApp: several numbers (sales, support, branches), ready-made messages visitors can pick (with {title}, {price}, {url}), a floating chat window, an "Ask about this product" button on product pages, #whatsapp links and the [asbab_whatsapp] shortcode.
1.0.6 — New "Asbab" admin menu with every theme tool in one place, and a "Customize Asbab" menu in the top toolbar. Pattern library: copy Asbab patterns to My patterns as editable or synced patterns; inserted patterns are fully editable. Demo pages and the AI connection require an active license (direct edition).
1.0.5 — Single product: main image keeps its natural proportions.
1.0.4 — New single product template for WooCommerce: modern image gallery with thumbnails, sticky summary, full-width licence/option selector and formatted short description.
1.0.3 — One-link AI connection: built-in MCP server with OAuth sign-in. Add the site URL as a connector in Claude or ChatGPT, sign in and click Allow — no extra plugin or password needed. Connected apps can be disconnected any time.
1.0.2 — New Appearance → AI connection screen: checks requirements, installs MCP Adapter, creates an application password and gives a ready-made Claude configuration.
1.0.1 — Added the Tajawal font family (Arabic + Latin, 5 weights).
1.0.0 — Initial release.
