Поддержка Переводы Polylang and theme "Ares"

  • Hello!
    Firstly, sorry for my english)
    Start learning the WP and faced with the problem of localization theme Ares plugin Polylang. Home page under «Theme Settings» is not changed and the plugin does not find the line that I specify.
    Try to change ‘option.php’ :

    function optionsframework_option_name() {
    	$currentlang = get_bloginfo('language');
    	if(get_locale()=="ru_RU"):
        $themename = wp_get_theme();
        $themename = preg_replace("/\W/", "_", strtolower($themename));
        $optionsframework_settings = get_option('optionsframework');
        $optionsframework_settings['id'] = $themename;
        update_option('optionsframework', $optionsframework_settings);
    	else:
    	$themename = preg_replace("/\W/", "_", strtolower("ares_child"));
    	$optionsframework_settings = get_option('optionsframework');
            $optionsframework_settings['id'] = $themename;
            update_option('optionsframework', $optionsframework_settings);
    	endif;
    }

    But it does not work.. Очень надеюсь на помощь 🙂

  • Тема «Polylang and theme "Ares"» закрыта для новых ответов.