2012-12-20 24 views

回答

0

要在wordpress中激活从右到左(RTL),您应该首先通过编辑wp-config.php中的行来定义语言为阿拉伯语 只需添加ar注吐温的'是 'AR'

define('WPLANG', 'ar'); 

然后,去http://ar.wordpress.org并下载包,解压/解压缩并上传文件夹 /的wp-content /语言到你的WordPress /可湿性粉剂内容 刷新博客,它会自动更改为阿拉伯语

PS:改变WPLANG会影响管理菜单和一切都在 模板将更改语言匹配ar.po(在/语言的文件夹,如果它翻译由主题或插件。

请注意,语言文件必须与WPLANG名称匹配,在这种情况下WPLANG设置为ar,因​​此.po文件必须为ar.po。

1

在你header.php文件中,您将有相似的一行:

<link href="<?php bloginfo('template_url'); ?>/rtl.css" rel="stylesheet" type="text/css" /> 

你与右至左一个替换默认的样式表:

<link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" /> 

将其替换。

+0

我没有发现任何行在header.php中包含style.css或rtl.css – iLearnSomethingNew

+0

而没有包含'bloginfo('stylesheet_url');'?它应该在那里。在浏览器中查看解释的源代码并检查链接的位置。 –

+0

我已经在所有主题文件中搜索到,我发现这些行http://pastebin.com/mj6DjEea'*包括帖子编辑器样式表。 */ 如果{ \t功能standard_add_theme_editor_style(){ \t \t \t \t add_editor_style( 'CSS /编辑-style.css文件')(function_exists( 'standard_add_theme_editor_style')!); \t \t \t \t $ options = get_option('standard_theme_presentation_options'); ('full_width_layout'== $ options ['layout']){ \t \t \t add_editor_style('css/editor-style-full。css'); \t \t} //结束如果 \t \t } //结束standard_add_theme_editor_style \t ADD_ACTION( '初始化', 'standard_add_theme_editor_style'); } // end if' – iLearnSomethingNew