---
title: "Text - Tassos Code Snippets"
description: "Text snippets are designed for administrators who want to add reusable, formatted content to their Joomla site without writing HTML. Use a Text snippe"
url: "https://www.tassos.gr/docs/code-snippets/types/text"
date: "2026-04-29T06:17:19+00:00"
language: "en-GB"
---

[ Home ](https://www.tassos.gr/index.php?option=com_content&view=category&layout=blog&id=24&Itemid=1088) / [ Tassos Code Snippets ](https://www.tassos.gr/index.php?option=com_content&view=category&id=120) / [ Snippet Types ](https://www.tassos.gr/index.php?option=com_content&view=category&id=122)

#  Text

Text snippets are designed for administrators who want to add reusable, formatted content to their Joomla site without writing HTML. Use a Text snippet when you need to insert a paragraph, heading, formatted notice, or any block of copy that may appear in multiple places — such as a disclaimer, a promotional message, or a standard boilerplate. The content is written using Joomla's default WYSIWYG editor, so no coding knowledge is required.

## [How to Create a Text Snippet](#how-to-create-a-text-snippet)

To learn how to create a reusable text snippet in Joomla, follow the steps below:

1. Log in to your Joomla administrator
2. Go to **Components → Tassos Code Snippets**
3. Click **New**
4. Enter a descriptive **Title** (e.g. "Cookie Disclaimer")
5. Select **Text** as the Code Type.
6. Choose the Insertion Method
    - To auto-insert the snippet to a predefined location, select **Auto-Insert**.
    - To insert the snippet manually via a shortcode, select **Shortcode**.
7. When using **Auto-Insert**, the following locations are available:
    - Site Body
    - Site Footer
    - Admin Body
    - Admin Footer
    - After Article Title
    - Before Article Content
    - After Article Content
8. When using the **Shortcode** insertion method, place `{tcs snippet.alias}` anywhere Joomla processes content — in articles, modules, or component output.
9. Write your code in the WYSIWYG editor. You can format text, add links, insert images, and use any feature your site's configured editor provides (e.g. TinyMCE or JCE). The editor output is saved as HTML and injected verbatim at the chosen location.
10. Open the **Conditional Logic** tab to restrict which pages or users the snippet runs on. Leave it empty to run it site-wide. Learn more in [Using Snippet Logic](https://www.tassos.gr/docs/tassos-code-snippets/functionality/conditional-logic).
11. Set Status to Published and click Save &amp; Close.

## [Difference Between Text and HTML Snippets](#difference-between-text-and-html-snippets)

 |  | Text | HTML |
|---|---|---|
| **Editor** | Joomla's default WYSIWYG editor | CodeMirror (code editor) |
| **Target user** | Content editors with no HTML knowledge | Developers and technical users |
| **Input** | Formatted text via toolbar | Raw HTML markup |
| **Output** | Rendered verbatim as HTML | Rendered verbatim as HTML |
| **Locations** | Site Body, Site Footer, Admin Body, Admin Footer, Article locations | All locations |
| **Insertion methods** | Auto-Insert and Shortcode | Auto-Insert and Shortcode |

Both types produce identical output — the difference is entirely in the editing experience.

## [Troubleshooting](#troubleshooting)

### [Content Not Appearing](#content-not-appearing)

1. Check snippet status is **Published**
2. Verify the location is appropriate for the page you're viewing
3. Check conditional logic settings
4. Clear Joomla and browser cache

### [Formatting Lost After Save](#formatting-lost-after-save)

Some editors strip certain HTML tags depending on their configuration. If your formatting is being removed, check your editor's allowed tags / allowed content settings (in TinyMCE this is under **Options → Valid Elements**).

### [Content Appearing in Wrong Place](#content-appearing-in-wrong-place)

- For inline content alongside article text, use **Before Article Content**, **After Article Content**, or **Shortcode**
- **Site Body** and **Site Footer** inject into the raw page buffer and may not appear where expected depending on your template

 Last updated on Mar 3rd 2026 14:03

## Schema

```json
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://www.tassos.gr"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Home",
            "item": "https://www.tassos.gr/docs"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Tassos Code Snippets",
            "item": "https://www.tassos.gr/docs/code-snippets"
        },
        {
            "@type": "ListItem",
            "position": 4,
            "name": "Snippet Types",
            "item": "https://www.tassos.gr/docs/code-snippets/types"
        },
        {
            "@type": "ListItem",
            "position": 5,
            "name": "Text",
            "item": "https://www.tassos.gr/docs/code-snippets/types/text"
        }
    ]
}
```

```json
{
    "@context": "https://schema.org",
    "@type": "Article",
    "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://www.tassos.gr/docs/code-snippets/types/text"
    },
    "headline": "Text",
    "image": {
        "@type": "ImageObject",
        "url": "https://www.tassos.gr/"
    },
    "publisher": {
        "@type": "Organization",
        "name": "Tassos",
        "logo": {
            "@type": "ImageObject",
            "url": "https://www.tassos.gr/https://www.tassos.gr/media/brand/logo-text.png"
        }
    },
    "author": {
        "@type": "Person",
        "name": "Tassos Marinos",
        "url": "https://www.tassos.gr/docs/code-snippets/types/text"
    },
    "datePublished": "2026-03-02T19:50:05+02:00",
    "dateCreated": "2026-03-02T19:50:05+02:00",
    "dateModified": "2026-03-03T14:42:45+02:00"
}
```
