• Resolved mxnet

    (@mxnet)


    Hello Community,

    I am building a website with a self-made child theme of Zerif Lite.

    The only way to edit the Zerif Lite Homepage seems to be with this Customizer thingie, but not with the default WordPress page/texteditor.

    Therefore, I stripped most of the PHP stuff from the various .php files in the /sections folder (eg. aboutus.php, focus.php, etc) and replaced it with static HTML code containing my content.

    That approach worked well so far, since the page shows all my content and my designs as it should be. Now I face the problem, that f.e. Polylang/LingoTek Plugins are unable to determine the strings to translate in the static HTML. Less sophisticated translators, like Google Translate plugin, are able to read and translate all strings, also the static HTML. So there must be way to get PolyLang working too.

    Can anyone tell me, how I need to tag my strings in the static HTML, so they show up in Polylang string editor? Someone told me I need to wrap it with some .gettext() function or something in that direction.

    Please can you provide examples, how such a .gettext wrapped string has to look, to make it work? If required, I can post the HTML of one of my files in /sections to show how the HTML is structured?

    Further, can anyone advise how I make Zerif editable with the WP page editor or Siteorigins PageBuilder plugin? I’d expect some page called “Home” in WP pages menu, but there is none. The only way it seems to work without static HTML additions is via the very limited and inflexible Customizer tool, which I do not require at all.

  • The topic ‘[Zerif/Polylang] Translate Static HTML Content’ is closed to new replies.