Changing the text "promoted articles" to "News" in several languages
Hi,
I've seen a couple of posts about this, however, none of the codes work for me. I wanted to change the text "promoted articles" to "news" in 3 languages (English, German, French). If possible too, I would like to add it to the side of the template instead of on the bottom. Is this possible?
Thank you in advance!
-
Assuming you have Suite Growth or higher, you can use dynamic content to create a multi-language expression of "news". Then you can replace "promoted articles" with the dynamic content title you obtain.
- In Guide, click the Customize design icon in the sidebar.
- Click the theme you want to edit to open it.
- Click the options menu, then select Edit Code.
- Click the template home_page.hbs
- Search for {{t 'promoted_articles'}}
- Replace it with {{dc 'news'}}. Replace 'news' with the title of your dynamic content item, if different.
- Publish
Hope that helps.
-
Hi, Ahmed, thank you very much for your comment! I've applied the changes but now the following message shows up on the front page:
Could not find the placeholder for dynamic content named News
I only changed the name in two places after h2. Do you know what could be the issue?
-
Hi Micaela,
I get a similar error if my dynamic content item does not have a variant in the help center locale I am viewing. Strange since I assume it should revert to default.
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
3 Kommentare