• hi
    the plugin Sublanguage

    https://ww.wp.xz.cn/plugins/sublanguage/faq/

    How to add a language switch on template file ?
    Add this function in your template file

    do_action(‘sublanguage_print_language_switch’);

    the question is
    What is the name of the file that I put the code

    do_action(‘sublanguage_print_language_switch’);

    ؟؟
    index fle or any file
    thanx alot

Viewing 1 replies (of 1 total)
  • You must put this into the function.php file that already exists in your theme folder (or theme-child).

    But if you aren’t familiar with PHP environment, I suggest you to keep the PHP files alone and use exclusively the widget or the menu from WP user interface. (Appearance > Menu, then check “language” in the “Page Options”)

Viewing 1 replies (of 1 total)

The topic ‘which file name’ is closed to new replies.