• Resolved tacoberry

    (@tacoberry)


    I haven’t had the chance to test this out myself, but thought I’d check to see if anyone else has been able to check whether Global Content Blocks is compatible with WPML? It would be very handy if you could create a content block, hardcode its shortcode in a theme’s code and be able to display translated content for every different language version of your site.

    Other ways on how to use global content blocks to dynamically display translated content on multilingual sites are also welcome.

    https://www.ads-software.com/plugins/global-content-blocks/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author benz1

    (@benz1)

    I don’t see any reason why it wouldn’t work. Just try it and see! ??

    Thread Starter tacoberry

    (@tacoberry)

    I just gave using Global Content Blocks with WPML a shot and unfortunately it doesn’t work. When you translate the content for a content block on one language version, the translation is also being shown on the original language version. So you’re not able to use one Global Content Block for the different translated versions of your site, you need to create different versions of the same content block. This isn’t a big issue when enclosing content blocks in page content, but it does get annoying when you’re embedding a content block in a PHP page template for instance. Any ideas on how to efficiently manage this?

    Plugin Author benz1

    (@benz1)

    Not unless you can add some conditional php around the shortcode each language version only appears when that language is selected. Sorry but this isn’t something that i can assist with, maybe WPML can?

    Thread Starter tacoberry

    (@tacoberry)

    Thank you for your prompt advice benz1, I’ll check on a solution for this with WPML. There is indeed a workaround for it. Still, it would be nice if Global Content Blocks would be compatible with WPML so that it’s possible to give different language versions for a content block without having to create different content blocks or only displaying a language specific one. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Compatible with WPML?’ is closed to new replies.