# Texts: Edit and translate

If you want to change or translate texts, you can do this in the vast majority of cases using text modules. This is a basic function of Shopware and not a function of our themes, although we of course also use this practical basic function extensively.

{% hint style="success" %}
**Tip**: You can find more information about the basic functions of Shopware 6 in the [Shopware documentation](https://docs.shopware.com/en). If you need more information about the topic ‘text modules’, we recommend the following article: [Shopware 6 - Snippets](https://docs.shopware.com/en/shopware-6-en/settings/snippets)
{% endhint %}

## Editing and translating texts with snippets

If you want to change or translate a text, open the snippet manager in your administration's "Settings".

> You can find the snippet manager of Shopware 6 in the Shopware settings:
>
> * &#x20;"Settings" => "Shop" => "Snippets"

Select the desired language set and search for the desired text. This way, you should be able to find the corresponding snippet directly.

### For example

Let's take the phone number in the "Service Hotline" widget in the footer.

> Support and counselling via:
>
> #### 0180 - 000000&#x20;
>
> Mon-Fri, 9 am - 5 pm

Open the snippet manager and select the English language set (usually "BASE en-GB").

Now search for small pieces of text such as "0180 - 000000" or "Support and counselling via" or "Mon-Fri, 9 am - 5 pm" and shorten your search until you find one or more snippets.

{% hint style="success" %}
**Tip**: The trick here is that the link is integrated into the snippet as HTML code. So if you search for "`Support and counselling via: 0180 - 000000`" you won't find the snippet because the snippet's text is "`Support and counselling via: <a href="tel:+49180000000">0180 - 000000...`".
{% endhint %}

{% hint style="info" %}
**Note**: Not all snippets are HTML-capable. However, if a snippet uses HTML code, this is a good indicator that it is HTML-capable.
{% endhint %}

<figure><img src="https://1979975522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F178YilsPBIFHBAxTvcMo%2Fuploads%2F9rdid1Gg2IOTGkddBS32%2Fimage.png?alt=media&#x26;token=d62c8415-338c-4c19-901d-1e3076dbd229" alt=""><figcaption><p>Search for "Support and counselling via: 0180 - 000000"</p></figcaption></figure>

<figure><img src="https://1979975522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F178YilsPBIFHBAxTvcMo%2Fuploads%2FZPG7rCZX1N9M5iQkhowj%2Fimage.png?alt=media&#x26;token=28ff7db2-34d8-43a8-80e7-af9b2f6e30f0" alt=""><figcaption><p>Search for "Support and counselling"</p></figcaption></figure>

{% hint style="success" %}
**Tip**: Similar to snippets with HTML code, it may also be that a punctuation mark (e.g. a colon) is not part of the snippet itself. Omit closing punctuation marks if you don't find a snippet.
{% endhint %}

Once you have found the right snippet (e.g. `footer.serviceHotline`), you can customise it as you like and translate it into other languages.

<figure><img src="https://1979975522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F178YilsPBIFHBAxTvcMo%2Fuploads%2Fl7oYbpVSRSvpA6CvBzZI%2Fimage.png?alt=media&#x26;token=824c4979-a6db-42b7-b689-b9d2146ab6e7" alt=""><figcaption><p>Edit the "footer.serviceHotline" snippet</p></figcaption></figure>

Save your changes and reload the Storefront.&#x20;

If the change is not displayed, clear the Shopware cache and your browser cache.

As a final tip, we recommend that you save the original texts of snippets in the best possible way, for example in a text file. This way you can always revert to them.

***

## Find snippets even faster

For many of the features in ThemeWare®, you will find a link in the help text for the relevant theme configuration that will take you directly to the editor for the corresponding snippet.

<figure><img src="https://1979975522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F178YilsPBIFHBAxTvcMo%2Fuploads%2FdLbmyXuiyJu8uEnvBMCL%2Fadmin--help-text-with-snippet.png?alt=media&#x26;token=af9ace06-ca2e-4265-bdc1-8573a2c59df2" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**Tip**: You can also search the corresponding JSON file in the Shopware core for the text you are looking for: [storefront.en-GB.json](https://github.com/shopware/shopware/blob/trunk/src/Storefront/Resources/snippet/en_GB/storefront.en-GB.json)
{% endhint %}

***

## %Placeholders% in snippets

In some snippets, you will find placeholders such as `%shippingTime%`. These are replaced by a specific value using a Twig function in the corresponding template file.

{% code title="storefront.en-GB.json" %}

```json
...
"deliveryShippingTime": "Estimated delivery time: %shippingTime% workdays",
...
```

{% endcode %}

Do not change these placeholders if you want to continue using them.

If you want to stop displaying the delivery time, for example, you can also remove the placeholder.

{% hint style="info" %}
**Note**: A placeholder is only replaced if the template that uses the corresponding snippet provides for this. This means that you cannot use placeholders in any other snippets.
{% endhint %}

***

#### Further information

You can find more information on the topic of "snippets" in the following article:

{% content-ref url="../basic-knowledge/snippets" %}
[snippets](https://knowledge.themeware.design/knowledge-base/basic-knowledge/snippets)
{% endcontent-ref %}

The following overview shows all of the snippets available in ThemeWare®:

{% embed url="<https://docs.themeware.design/more-knowledge/snippets>" %}
ThemeWare® Manual => Snippets
{% endembed %}

You can also find more information on the topic of "snippets" in the Shopware documentation:

{% embed url="<https://docs.shopware.com/en/shopware-6-en/settings/snippets>" %}
Shopware documentation: Snippets
{% endembed %}
