# كيفية إضافة جافا سكريبت إلى تذييل المشاركات؟

**URL:** https://meta.discourse.org/t/how-to-add-javascript-to-footer-of-posts/205565
**Category:** Support
**Created:** [8 أكتوبر 2021، 4:37م UTC](https://meta.discourse.org/t/how-to-add-javascript-to-footer-of-posts/205565 "2021-10-08T16:37:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![prestont.hammond](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@prestont.hammond](https://meta.discourse.org/u/prestont.hammond)
#### Post date: [8 أكتوبر 2021، 4:37م UTC](https://meta.discourse.org/t/how-to-add-javascript-to-footer-of-posts/205565/1 "2021-10-08T16:37:59Z")

</div>

مرحباً بك. لدي موقع على منصة ديسكورد وأخطط لاستخدام مخططات البيانات (Schema Markups) في منشوراتي. هل يعرف أحد كيفية إضافة كود جافا سكريبت في رؤوس المنشورات على ديسكورد، أو هل هناك إضافة تساعدني في ذلك، تماماً مثل إضافة “Header and Footer Script” في ووردبريس؟

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [9 أكتوبر 2021، 11:30ص UTC](https://meta.discourse.org/t/how-to-add-javascript-to-footer-of-posts/205565/2 "2021-10-09T11:30:22Z")

</div>

هل اطلعت على [دليل المطور لسمات Discourse](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648) أو [الدليل المرجعي السريع لمطوري السمات](https://meta.discourse.org/t/theme-developer-quick-reference-guide/110448)؟

---

<div class="post-metadata">

### Author: ![prestont.hammond](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@prestont.hammond](https://meta.discourse.org/u/prestont.hammond)
#### Post date: [10 أكتوبر 2021، 7:44ص UTC](https://meta.discourse.org/t/how-to-add-javascript-to-footer-of-posts/205565/3 "2021-10-10T07:44:52Z")

</div>

نعم، لقد فعلت ذلك. لكنني لم أستطع فهم ذلك. لذا جئت هنا بنشر جديد للحصول على إجابة سريعة ودقيقة. شكرًا!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [10 أكتوبر 2021، 9:10ص UTC](https://meta.discourse.org/t/how-to-add-javascript-to-footer-of-posts/205565/4 "2021-10-10T09:10:26Z")

</div>

يمكنك إضافة عناصر إلى قسم الرأس (head) في مكون السمة، كما توضح تلك الأدلة. لكن تشغيل الكود في المكان والوقت المناسبين يمثل تحدياً آخر.

ومع ذلك، قد يؤدي ذلك فقط إلى تحميل جافا سكريبت، أو ربما يكون هذا كل ما تحتاجه.

قد يكون من المفيد أن توضح أكثر ما تحاول تحقيقه بدلاً من وصف الحل المقترح.
