简体   繁体   English

如何删除水平滚动条Wordpress管理员编辑器

[英]How can i remove horizontal scroll bar wordpress admin editor

Here is screen shot : http://d.pr/i/QhkF 这是屏幕截图: http : //d.pr/i/QhkF

My theme is : http://www.templatemonster.com/wordpress-themes/37712.html 我的主题是: http : //www.templatemonster.com/wordpress-themes/37712.html

Any idea? 任何想法?

If you want to fix the content area of an editor of wordpress, then the only way way to do this by adding the custom css to your default template. 如果要修复wordpress编辑器的内容区域,则唯一的方法是将自定义css添加到默认模板中。

To do this go to your default template and add the below line to your functions.php . 为此,请转到默认模板,然后将以下行添加到functions.php

suppose i have given a name for my custom css file like test.css . 假设我为我的自定义css文件(如test.css

add_editor_style('test.css'); //in functions.php

and then create a file named test.css (or whatever) in your theme directory and put this line of code inside it: 然后在主题目录中创建一个名为test.css(或其他名称)的文件,并将以下代码行放入其中:

html .mceContentBody {
        max-width: 400px !important; // whatever improbable size you want
}

When you personalize your site you'll need to go to site styling > custom CSS and add this script : 对网站进行个性化设置时,您需要转到网站样式>自定义CSS并添加以下脚本:

body {
    overflow-x: hidden;
}

It will enable your horizontal scroll. 它将启用您的水平滚动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM