I created some HTM pages on HTML directory. Those pages are created because I need to upload 100+ external HTML files/pages to be hosted on the same WP website. The pages are bilingual, in English (eng directory) and French (fra directory).
I also created a custom header for those pages. but I don't know how to add the language switcher to it so it will work for the new HTML page, and will switch between English and French as it's currently similarly to the pages created on WP dashboard.
A long with the custom header, I will need the footer to be switching between languages as well. In the current WP pages, the header and the footer are switching automatically between the two languages as their elements are translated.
I created a language link to the HTML files, for the languages to be recognized. Attached is a HTML sample.
I am embeding PHP in the HTML files, should I created different headers and footers for different languages and include them in the related pages, or is there a way to take advantage of WPML plugin features/functionality without coding new headers and footers.
I am actually working on DEV environment and the URL is not accessible to external end users.
Please let me know if you need more information and/or clarification.
Could you know what would be the time frame for the third party contructor to help me with the customization of the WPML plugin and make it work the way I want it? I need this to be done by the end of this week. I have THML pages ready and need the header and the footer to be set so they work with both languares similarly to the WP pages.
I can't say for sure as this would depend on them.
A quick solution here could possibly be to add a custom static switcher that looks like our WPML switcher and link it to the other pages with a hardcoded link as you mentioned above as utilizing WPML for this would require to use of our Hooks however I am not sure how they will behave as we use the database to pull translation data.
The topic ‘[Closed] Get language switcher fro HTML pages’ is closed to new replies.