> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/edit-your-widget-or-microsite-html-and-css-for-advocate.md).

# Advocate用のウィジェットまたはマイクロサイトのHTMLとCSSを編集する

追加のHTMLとCSSを使用して、Advocateウィジェットやマイクロサイトをカスタマイズし、ブランドの見た目や雰囲気によりよく合わせることができます。Advocateに組み込まれたHTMLエディターを使用すると、構造やスタイルを追加したり、特定のデフォルトコンポーネントを上書きして、より深いカスタマイズを行ったりできます。

{% hint style="info" %}
**注**：カスタムHTML/CSS編集は、特定のAdvocateエディションでのみ利用できます。お問い合わせください [サポート](mailto:saasquatch-support@impact.com) アカウントをアップグレードしてこの機能を利用するには。
{% endhint %}

#### なぜカスタムHTMLやCSSを使うのですか？

カスタムHTMLとインラインCSSを使用すると、次のことができます。

* 自社のブランドガイドラインにより近づける
* レイアウトと余白を再調整する
* デフォルトエディターで利用できる範囲を超えたスタイルを適用する
* 選択したウィジェットまたはマイクロサイトのコンポーネントのスタイルを上書きする

{% hint style="warning" %}
**重要**：カスタムコードによって生じた問題については、サポートチームによる対応は限定的です。ご不明な場合は、Advocate導入チームまたは公開後のチームと連携することをおすすめします。
{% endhint %}

#### HTMLまたはCSSを編集

{% tabs %}
{% tab title="マイクロサイトを編集" %}
組み込みのHTMLエディターを使用して、HTMLまたはCSSを編集し、マイクロサイトにさらなるカスタマイズを加えることができます。HTMLエディターによりマイクロサイトデザインの柔軟性は高まりますが、カスタムHTMLやCSSによる調整についてはトラブルシューティングを行えない点にご注意ください。

1. 左側のナビゲーションメニューで、 ![\[Engage\] v2](https://paligoapp-cdn-eu1.s3.eu-west-1.amazonaws.com/impact/attachments/f01cdffa431a4d75ff09c130b66974d4-aa671735ec2b65af79961eaf59ab60af.svg) **\[Engage] → コンテンツ**.
2. マイクロサイトカードで、 **コンテンツを編集**.
3. マイクロサイトタブで、編集したいコードのレイアウトまたはページを選択します。
4. 選択 ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-3364b389815e6386c73528dda541e583d2fe0c16%2F0eceeaaa32f185a9932075cd699744ed6b755396902ea2e4cabff73869cb9f6f.svg?alt=media)![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-6104f36947b882897acb25b42d057dee1ebd572a%2F80d3875a58861553d70eb3df7d72c3e6820128c3d4212b3bb623e44832b6ee2c.svg?alt=media) **\[コード表示]** を上部のメニューバーで選択します。
5. 必要に応じてHTMLとCSSを追加または変更します。
6. CSSは3つの方法で追加できます。

   * 外部CSSスタイルシートをインポートする
   * ページ上部の `<style>` タグ内に:

   ```programlisting
   <style>
     p {
       color: blue;
     }

     .exampleClass {
       color: green;
       font-size: 25px;
       text-align: center;
     }

     #exampleId {
       color: red;
       font-size: 30px;
     }
   </style> 
   ```

   * 特定のHTML要素にスタイルを適用するには、インラインで:

   ```programlisting
   <h3 style="font-size:30px;color:blue;">友だちが当社の製品を使うと報酬を獲得できます</h3> 
   ```
7. 選択 ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-1782d05738c13ec58eb6efb9c77d0c3e5ac96f02%2F309574593b8707c978ca25cd69a36a5a0faa4589103874c5ddc1dd96307e696e.svg?alt=media) **\[ペイントブラシ]** をクリックして更新内容をプレビューします。
8. 選択 **下書きを保存** をクリックして保存、または **公開** をクリックして変更を反映します。
   {% endtab %}

{% tab title="ウィジェットを編集" %}
組み込みのHTMLエディターを使用して、HTMLまたはCSSを編集し、ウィジェットにさらなるカスタマイズを加えることができます。HTMLエディターによりウィジェットデザインの柔軟性は高まりますが、カスタムHTMLやCSSによる調整についてはトラブルシューティングを行えない点にご注意ください。

1. 左側のナビゲーションメニューで、 ![\[Engage\] v2](https://paligoapp-cdn-eu1.s3.eu-west-1.amazonaws.com/impact/attachments/f01cdffa431a4d75ff09c130b66974d4-aa671735ec2b65af79961eaf59ab60af.svg) **\[Engage] → コンテンツ**.
2. 上の *ウィジェット* カードを選択し **ウィジェットを編集**.
3. 次の下で *プログラムウィジェット*から、編集したいウィジェットを選択します。

<div data-with-frame="true"><figure><img src="https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fur4WJaahngh87vDtnZXg%2FScreenshot%202026-05-19%20at%2009.28.51.png?alt=media&amp;token=8f91133b-08f2-4c9b-9462-7e231dc80273" alt="" width="563"><figcaption></figcaption></figure></div>

1. 上部のメニューバーで、次を選択します： ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-3364b389815e6386c73528dda541e583d2fe0c16%2F0eceeaaa32f185a9932075cd699744ed6b755396902ea2e4cabff73869cb9f6f.svg?alt=media)![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-6104f36947b882897acb25b42d057dee1ebd572a%2F80d3875a58861553d70eb3df7d72c3e6820128c3d4212b3bb623e44832b6ee2c.svg?alt=media) **\[ブラケット]**.
2. ページ本文にHTMLを追加または編集します。
3. CSSは3つの方法で追加できます。

   * 外部CSSスタイルシートをインポートする
   * ページ上部の `<style>` タグ内に:

   ```programlisting
   <style>
     p {
       color: blue;
     }

     .exampleClass {
       color: green;
       font-size: 25px;
       text-align: center;
     }

     #exampleId {
       color: red;
       font-size: 30px;
     }
   </style> 
   ```

   * 特定のHTML要素にスタイルを適用するには、インラインで:

   ```programlisting
   <h3 style="font-size:30px;color:blue;">友だちが当社の製品を使うと報酬を獲得できます</h3> 
   ```
4. 選択 ![](https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-1782d05738c13ec58eb6efb9c77d0c3e5ac96f02%2F309574593b8707c978ca25cd69a36a5a0faa4589103874c5ddc1dd96307e696e.svg?alt=media) **\[ペイントブラシ]** をクリックして更新内容をプレビューします。
5. 選択 **下書きを保存** をクリックして保存、または **公開** をクリックして変更を反映します。
   {% endtab %}
   {% endtabs %}

#### **CSSパーツを使用してコンポーネントを編集**

ウィジェットまたはマイクロサイト内の一部の組み込みコンポーネントは、ビジュアルエディターだけでは完全にスタイル設定できません。場合によっては、より細かく制御できるCSSパーツを使用して外観を上書きできます。

高度なスタイル更新を行いたい場合は、impact.comチームが可能な内容についてご案内し、該当するCSSパーツセレクターを共有できます。CSSパーツを使ってコンポーネントを編集したい場合は、Advocate導入チームまたは公開後サポートチームにお問い合わせください。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/edit-your-widget-or-microsite-html-and-css-for-advocate.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
