• Hey there,
    I am using Polylang on my Bento-themed site to offer the site in English and German. I was able to translate everything except the call-to-action buttons, as they are not supported in Polylang’s String translations.

    Did someone find a way to support this? Any help would be greatly appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter eschoenawa

    (@eschoenawa)

    I’ve now tried two possible solutions that both sadly didn’t work.

    First, I tried to use a custom shortcode for this, more specifically this one, which allows switching the displayed text depending on the selected language. Sadly it seems like Bento is not using shortcodes when interpreting the call-to-action-button-text, since just the shortcode is displayed on the button.

    Secondly, I tried inlining PHP into the button text and loading a custom-defined string from Polylang, to no avail as the button simply disappears when the text is just inlined PHP.

Viewing 1 replies (of 1 total)
  • The topic ‘Translate the call-to-action buttons with Polylang’ is closed to new replies.