Navigation überspringen

Dies ist das technische Support-Forum für WPML – das mehrsprachige WordPress-Plugin.

Mitlesen können alle, doch nur WPML-Kunden können hier Fragen veröffentlichen. Das WPML-Team antwortet im Forum an 6 Tagen pro Woche, 22 Stunden am Tag.

Dieses Thema enthält 1 Stimme und hat 0 Antworten.

>
Verfasser Beiträge
August 21, 2023 at 8:24 am #14260879

stefanE-2

We have a custom Theme which is not optimised for wpml (no conifg file). Now I try to add the config via the settings. Sadly the don't have any effect.

For Example:

The config:
<wpml-config>
<shortcodes>
<shortcode>
<tag>btn</tag>
<attributes>
<attribute>text</attribute>
<attribute type="link" encoding="av_link">url</attribute>
</attributes>
</shortcode>
</shortcodes>
<gutenberg-blocks>
<gutenberg-block type="acf/highlights" translate="1">
<key name="data">
<key name="highlights_title"></key>
<key name="highlights_select_categories" type="post-ids"></key>
<key name="highlights_select_single_highlight" type="post-ids"></key>
</key>
</gutenberg-block>
<gutenberg-block type="acf/voncontent" translate="1">
<key name="data">
<key name="content_content_title"></key>
<key name="content_column_one"></key>
<key name="content_column_two"></key>
<key name="content_content_button"></key>
</key>
</gutenberg-block>
</gutenberg-blocks>
</wpml-config>

And the gutenberg-blocks:
<!-- wp:acf/highlights {"name":"acf/highlights","data":{"highlights_title":"Highlights.","_highlights_title":"field_627a178f144e1","highlights_title_tag":"h2","_highlights_title_tag":"field_62985fd122a4b","highlights_select_categories":["13"],"_highlights_select_categories":"field_627a17ed144e2","highlights_select_single_highlight":"","_highlights_select_single_highlight":"field_627a1883144e4","highlights":"","_highlights":"field_627a1778144e0"},"mode":"edit"} /-->

<!-- wp:acf/voncontent {"name":"acf/voncontent","data":{"content_content_title":"Engstligenalp: Erleben. Staunen. Entdecken.","_content_content_title":"field_627b8c022e827","content_title_tag":"h1","_content_title_tag":"field_62985e76d30c1","content_style":"Text 1-Column","_content_style":"field_627b8c1f2e828","content_column_one":"Die grösste Hochebene der Schweiz ist für die einen ein Sommerparadies, für andere das perfekte Wandergebiet und für viele einfach ein Kraftort. Die Engstligenalp beeindruckt aber nicht nur durch die Engstligenfälle, wo das Wasser tosend und schäumend über 2 Kaskaden 600 Meter in die Tiefe stürzt. Auch das Alpfeeling kommt auf den Wiesen mit frei weidenden Kühen nicht zu kurz. Ob Erholung in den Bergen oder Action auf der Hochebene – auf der Engstligenalp sind Naturerlebnisse garantiert!","_content_column_one":"field_627b8c922e829","content_content_button":"","_content_content_button":"field_627b8d2d2e82c","content":"","_content":"field_627b837e2e826"},"mode":"edit"} /-->

And the shortcode:

[btn url='sommer/essen/restaurant' text='Genuss & Kulinarik auf der Engstligenalp']

Could you please help me?

I tried to save the site. And wpml was running but nothing has chanched. the gutenbergblocks are translatet (all also the one which i don't want to translate (how can i optout some fields?)) And the shortcode is not shown in the translation editor.

Here some picures:

highlights.PNG
content.PNG

The topic ‘[Geschlossen] The custom xml configuration don't have any effect’ is closed to new replies.