Gorgias logo
Gorgias logo

All articles

HTML snippetsUpdated 2 months ago

HTML snippets can be used to add custom formatting to articles - outside of what's available in the editor - and are added to articles using the code view.



Snippets

Toggle list

 This is a toggle  This is text within a toggle


<details>
<summary>
This is a toggle
</summary>
This is text within a toggle
</details>


Callout - tip

This is a tip callout



<div class="tip-callout">
This is a tip callout
</div>


Callout - warning

This is a warning callout



<div class="warning-callout">
This is a warning callout
</div>


Alert - warning

This is a warning alert



<div class="alert alert-warning">
This is a warning alert
</div>


Alert - info

This is an info alert



<div class="alert alert-info">
This is an info alert
</div>


Alert - danger

This is a danger alert



<div class="alert alert-danger">
This is a danger alert
</div>


Alert - success

This is a success alert



<div class="alert alert-success">
This is a success alert
</div>



Steps

1. Switch to the code view using theicon at the bottom right of the toolbar.

2. Copy the snippet you'd like to apply.

3. Paste it into the article wherever you want it.

4. Switch back to the text view.

5. Edit the text further.

6. Click on Save & Publish.

Was this article helpful?
Yes
No