[Resolved] Translation and Improved Include Page

Home Forums Support [Resolved] Translation and Improved Include Page

Home Forums Support Translation and Improved Include Page

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #332856
    Thierry

    Hello;

    With GP hooks, i display a page just before the footer with this plugin :
    https://fr.wordpress.org/plugins/improved-include-page/

    It’s simply a shortcode with the ID on page [include-page id= “123”]

    But with WPML my english page have an other ID, how i can “choice” on GP Hook (‘if french is this ID, is english this ID)

    Thx

    #332992
    Tom
    Lead Developer
    Lead Developer

    I’m not 100% sure, but WPML gave me a file to include in GP Premium which makes it 100% compatible with WPML (including Hooks).

    The beta is out now if you want to install it: https://docs.generatepress.com/article/beta-testing/

    #333008
    Thierry

    Thank you Tom but i don’t understand how i can do this ?

    #333201
    Leo
    Staff
    Customer Support

    You would add the code to Code Snippet: https://docs.generatepress.com/article/adding-php/#code-snippets

    Then you should be able to get the beta notification.

    #333288
    Thierry

    yes of course but how customize this snippet for WPML ?

    #333505
    Tom
    Lead Developer
    Lead Developer

    It includes a new wpml-config.xml file which should tell WPML which fields are translatable. This includes the hook boxes. The file was provided by WPML themselves.

    #335677
    Thierry

    Hello,

    i found the solution with https://wpml.org/forums/topic/if-conditional-for-language/ and do_shortcodes.

    thx for your help.

    #335770
    Tom
    Lead Developer
    Lead Developer

    Awesome 🙂

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