admin管理员组文章数量:1126347
I have added this snipped to enable possibility to translate a website:
function florial_setup()
{
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
* If you're building a theme based on florial, use a find and replace
* to change 'florial' to the name of your theme in all the template files.
*/
load_theme_textdomain('florial', get_stylesheet_directory() . '/languages');
}
add_action('after_setup_theme', 'florial_setup');
I have made necessary settings in pot and po files to translate website to local language and it actually works. But after adding this snippet, the sidebar disappeared in shop page and in single product page appeared Blog sidebar. After I remove this snipped everything gets okay - I see right sidebar in shop page and no sidebar in single product page.
How this code snippet can cause such issues, do you have any ideas? In theme support I got answer, that these are my custom issues and it is beyond their scope of support. But anyway is it possible that theme code causes such issue?
本文标签: multi languageMaking theme translation available crashes sidebar
版权声明:本文标题:multi language - Making theme translation available crashes sidebar 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736685351a1947633.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论