Archived topic
Translation and Improved Include Page
7 replies · Started by Thierry on June 13, 2017
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
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/
Thank you Tom but i don't understand how i can do this ?
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.
yes of course but how customize this snippet for WPML ?
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.
Hello,
i found the solution with https://wpml.org/forums/topic/if-conditional-for-language/ and do_shortcodes.
thx for your help.
Awesome :)