Dynamic Content allows you to create custom text translations for your Help Center that changes depending on which locale your user is accessing it from. This is particularly important if you are using two or more languages and using the optional FAQ homepage section for instance.
Creating dynamic content and inserting it into the Theme settings will ensure the correct, translated text content is displayed to the end user.
This article will cover the following topics:
- Creating Dynamic Content in Support
- Activating Dynamic Content in the theme
-
Inserting Dynamic Content into the theme
Creating Dynamic Content in Support
- In Admin Center, click Workspaces in the sidebar, then select Agent tools > Dynamic Content.
- Click Add Item.
- Choose a name, such as footer or HC_footer to more easily find your help center related dynamic content later.
- Select a default language such as English.
- Paste the HTML code you want to display for English-speaking customers in the content box.
- Click Create to save your dynamic content item.
- Notice the item's name between curly brackets. You'll use that later on.
- Now add one or more other translations. To do so, click Add Variant and follow steps 3-6 again.
- Copy the placeholder text between'{{dc.' and '}}' , eg: copy hc_faq_question_1 not {{dc.hc_faq_question_1}}. We'll use this in the next part when we add it to your help center.
Your dynamic content is ready. Now, you can add it to your help center.
Example of an FAQ question:
Activating Dynamic Content in the theme settings
- In Guide, click the Customize design icon () in the sidebar.
- Click Customize in the Astro theme to update it. The theme page opens.
- In the Settings panel, click Advanced Settings.
- Enable 'Use Dynamic Content'.
- Click Publish.
NOTE: Activating this setting will convert ALL CONTENT to Dynamic Content. This means if dynamic content does not exist for any of the display items, an error will be rendered in the Theme and to your users:
Example error:
Inserting Dynamic Content into the theme
Once you have created the Dynamic content and copied the placeholder as instructed in step 9, simply copy this into the Theme settings where required. Ensure you have added all of your Dynamic Content to the theme settings BEFORE you activate the Dynamic Content setting in the next step.
In the below example, we've added our Dynamic Content placeholders into the FAQ Name and Title 1 setting. The placeholder generated in the Dynamic Content section is inserted into the Help Center which ensures the correct content is displayed depending on the locale being presented to the end user:
For more information on Dynamic Content, check out the Zendesk guide here: Changing your help center design based on your end-user language