Translating Custom Content can be tricky when the text has a more complex HTML structure — for example, when it is spread across multiple paragraphs, or when parts of it are bold, emphasized, linked, or otherwise formatted.

Due to the formatting, each part is wrapped in its own HTML tag — such as <strong> or <a> for inline formatting, or <p> for separate paragraphs. Each part needs its own Custom Content entry.


It is recommended to use the browser's Inspect tool to view the exact HTML structure of your text before creating your Custom Content entries.


The Inspect tool is a built-in browser feature that lets you view and explore the HTML of any webpage. You can find more general information in DreamHost's guide to the Inspect tool.


Watch the video or follow the step-by-step guide below.




Step-by-step Guide


In this example, we want to translate a text via Custom Content. The text contains both a bold part and a link:

The original German text to be translated, containing formatted parts



Step 1 — Open the Inspect Tool


Right-click on the text you want to translate in your storefront and select Inspect from the dropdown menu. The exact label may vary depending on your browser.


Right-clicking on the storefront text reveals a dropdown menu with the Inspect option



Step 2 — Identify the HTML Structure


View the HTML to see the exact structure of the text. In this example, the text is divided into 4 separate parts:


  1. Bleib immer
  2. Up-to-Date
  3. mit
  4. unserer App


The browser Inspect tool showing the HTML structure of the text, split into 4 separate parts



Step 3 — Create the Custom Content Entries


Create one Custom Content entry for each part. For this example, that's 4 separate Custom Contents in total.


Four Custom Content entries created in langify, one for each part of the original text



Step 4 — Add Your Translations


Add your translations to each entry and save.


The four Custom Content entries with translations filled in for each part



Step 5 — Verify the Result


Go back to your storefront and reload the page to confirm the translations have been applied correctly.


The storefront showing the translated text correctly applied