Force language on Homepage

dev.xiligroup est en travaux Forums xili-language plugin Force language on Homepage

Ce sujet contient 0 réponses et 2 voix, et a été mis à jour par  Anonyme il y a Il y a 14 ans, 12 mois.

Visualisation du message 3 (1 sur 3, 3 au total)
  • Auteur
    Articles
  • #2766

    xiligroup dev
    Keymaster

    « 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…

    #2767

    xiligroup dev
    Keymaster

    if home is a page.php, some infos can be found here : https://dev.xiligroup.com/?p=851 (not yet in english…)

    #2768

    Anonyme

    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

Visualisation du message 3 (1 sur 3, 3 au total)

Vous devez être connecté pour répondre à ce sujet.