Jump to content

maxwell99

Neophyte
  • Posts

    1
  • Joined

  • Last visited

maxwell99's Achievements

Explorer

Explorer (1/14)

0

Reputation

  1. Пример кода для русского и другого языка if (ICL_LANGUAGE_CODE == 'ru') { $code = '<a href="' . lifestyle_get_home_url() . 'en/">Ваше Лого</a>';} else { $code = '<a href="' . lifestyle_get_home_url() . '">Ваше Лого</a>';}function my_get_home_url (){ if ( function_exists('icl_get_home_url') ) { return icl_get_home_url(); } else { return get_option('home'); }}Про функцию my_get_home_url можете почитать здесь.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy