I'm using the WPML Wordpress plugin to translate my website. My default language is French. When I'm in a translated page, the home_url()
is rewrite with the current language. How can I disable this rewrite so my home_url()
always redirect to the french homepage?
Translate page url : http://www.mydomain.com/en/test/
Actual home_url()
: http://www.mydomain.com/en/
Desired home_url()
: http://www.mydomain.com/
I've already tried these solutions :
http://wpml.org/forums/topic/wpml-overwrites-home_url-to-append-language-suffix/ http://wpml.org/documentation/support/creating-multilingual-wordpress-themes/home-page-link/ http://wpml.org/forums/topic/wpml-changed-my-default-home-url/
Sorry for my poor english and thanks for the help! Let me know if I need to provide any other information.