Site logo

[Resolved] Blog header and WPML

Home Forums Support [Resolved] Blog header and WPML

Home Forums Support Blog header and WPML

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #274707
    Luca

    Hi Tom,

    I am implementing multilanguage on a GP (Premium) based site.

    For the blog page, the header options are no longer controlled from within the page itself but from the customizer.

    How would I go about translating the content of that?

    Thanks

    #274764
    Leo
    Staff
    Customer Support

    Hi there,

    I think this post should help: https://generatepress.com/forums/topic/update-translate/#post-261748

    Let us know.

    #274779
    Luca

    Hi Leo,

    Sorry, maybe I was not clear. I am not looking at how to translate GeneratePress itself but rather how to deal with the translation of the content for the page header specifically for the blog page as that – unlinke a normal page – is managed via the Customizer, not via the page options.

    #274869
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You can create a language configuration file: https://wpml.org/documentation/support/language-configuration-files/

    Which options exactly are you wanting to control? I’ll write up a quick example for you.

    #275521
    Luca

    Hi Tom,

    First of all, great work with GeneratePress, I really like it.

    In my specific case, what I need to control the “read more” text and the blog header options.

    For static pages this is not a problem as you can control the header options from within the metabox in the page backend. But for the blog header you switched that option to the Customizer.

    What I need to customize is:

    – generate_blog_settings
    — read_more

    – generate_page_header_options
    — page_header_content

    Thanks

    #275529
    Luca

    Hey Tom,

    In the meantime, I found out that it is possible to generate the required file also from within WPML interface (there is a small link at the bottom of the “string translation” page to do that) so this is solved.

    However, I would suggest that maybe you include the WPML config file by default in future versions of GeneratePress to ensure out-of-the-box compatibility.

    #275620
    Tom
    Lead Developer
    Lead Developer

    I agree, I’ve added a note to get this added into GP Premium 🙂

    #275940
    Luca

    I think this should be the way to go:

    https://wpml.org/documentation/theme-compatibility/go-global-program/

    Cheers

    #276169
    Tom
    Lead Developer
    Lead Developer

    I agree – thanks! 🙂

    #335891
    macbroadcast

    Hello there,
    I have the same problem, the site is already translated, I just get stuck with the header, these are just 2 simple lines, headline and site description, I can’t believe that I need to create a language configuration file for this simple task. Any other idea ?

    Thanks

    #336023
    Tom
    Lead Developer
    Lead Developer

    I’m not too sure what you mean? The site title and tagline set in Customize > Site Identity? Those are handled by WordPress itself and just displayed by GP.

    #336031
    macbroadcast

    Yes.that’s what I mean, so any idea how to translate?

    #336090
    macbroadcast

    Well that was super easy with string translation 😀

    #336289
    Tom
    Lead Developer
    Lead Developer

    Got it working? 🙂

    #336303
    macbroadcast

    Yes, simply searched with WPML string translation, translated and ready to go 😛

    [url=https://anonimag.es/image/JT9sOxY][img]https://anonimag.es/i/20_06_2017__18_07_5833178.md.jpg[/img][/url]

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.