WordPress: modifcare AdminBigWidth for developers

AdminBigWidth is a plugin for WordPress that can set the working area of the administration in full screen. It is a very simple plugin and trivial, in fact, his code does is change the CSS class .wrap :

1
2
3
4
AdminBigWidth function () {
; echo '<style type="text/css">. wrap {max-width: none} </ style>';
}
, 'AdminBigWidth' ) ; add_action ('admin_head', 'AdminBigWidth');

For those like me who uses the WordPress editor in HTML mode could be useful to set a monospaced font such as Courier font instead of the proposed default. In this way, at least for developers, it is easier to align source code. To do this just add, in the style of AdminBigWidth , a new approach to CSS that is reflected when the editor is in HTML mode. You could write a plugin (two lines) to do this, but it is better to use just the code AdminBigWidth , so as to avoid further load due to the nth Plugin:

1
2
3
4
AdminBigWidth function () {
; echo '<style type="text/css">. wrap {max-width: none} # content # editorcontainer {font-family: "Courier New", Courier, monospace} </ style>';
}
, 'AdminBigWidth' ) ; add_action ('admin_head', 'AdminBigWidth');

One Response to "WordPress: modifcare AdminBigWidth for developers"

  1. October 18, 2008 Francis Gaven :

    As always useful :)
    I'll put it into practice immediately.

Leave a comment

XHTML TAG PERMIT: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> INSERTION CODE:
 <pre></pre> // blocco generico <code></code> // blocco generico [cc_actionscript][/cc_actionscript] // Actionscript [cc_actionscript3][/cc_actionscript3] // Actionscript 3 [cc_css][/cc_css] // CSS Style Sheet [cc_html][/cc_html] // HTML [cc_js][/cc_js] // Javascript [cc_objc][/cc_objc] // Objective-C [cc_php][/cc_objc] // PHP [cc_sql][/cc_sql] // SQL