This topic contains 0 replies, has 2 voices, and was last updated by Anonymous 14 years, 10 months ago.
You must be logged in to reply to this topic.
dev.xiligroup is being renovated › Forums › xili-language plugin › Force language on Homepage
Tagged: CMS, default language, filter, home, homepage, hook, page, xiliml_cur_lang_head ()
This topic contains 0 replies, has 2 voices, and was last updated by Anonymous 14 years, 10 months ago.
« xiliml_cur_lang_head » is the filter name usable in your functions.php..
According to your CMS and your To prepare your specific php function (and the add_filter …) you must prepare with these questions :
what is the template file called as home : a page, a home or index…. ?
what is the first called loop ? what display the result of the_curlang() xili-language function placed at top… (for tests…) ?
Soon,
NOTE : If your website is commercial, xiligroup can provide (a short) technico-commercial assistance…
if home is a page.php, some infos can be found here : https://dev.xiligroup.com/?p=851 (not yet in english…)
Hello and thanks for the quick input.
My frontpage is the index.php with custom loops, the first is at the header.php template and in this way: $my_query=new WP_query('arguments');
Testing the <?php print the_curlang(): ?> shows es_es (that’s, indeed, the lang of the latest post introduced in the wp system) but I would like to force always the first visit to be in gl_es (galician).
I would like to know the quote for this kind of assistance (although I would like the solution to be made public)
Greets
You must be logged in to reply to this topic.
Ce site utilise des cookies afin que nous puissions vous fournir la meilleure expérience utilisateur possible. Les informations sur les cookies sont stockées dans votre navigateur et remplissent des fonctions telles que vous reconnaître lorsque vous revenez sur notre site Web et aider notre équipe à comprendre les sections du site que vous trouvez les plus intéressantes et utiles.
Cette option doit être activée à tout moment afin que nous puissions enregistrer vos préférences pour les réglages de cookie.
Si vous désactivez ce cookie, nous ne pourrons pas enregistrer vos préférences. Cela signifie que chaque fois que vous visitez ce site, vous devrez activer ou désactiver à nouveau les cookies.