WordPress.org

Ready to get started?Download WordPress

Forums

admin panel edit box size (13 posts)

  1. rvblog
    Member
    Posted 9 years ago #

    What *.php file do I need to edit in order to increase the size of the editing text box in the administration panel ?

    Thanks

  2. Kafkaesqui

    Posted 9 years ago #

    wp-admin/wp-admin.css:

    #content, #excerpt {
    margin-left: 1%;
    width: 97%;
    }

  3. rvblog
    Member
    Posted 9 years ago #

    Thanks Kaf,

    What would I have to add to increase the height of the box so that I can see more of the text that I am editing.

  4. rvblog
    Member
    Posted 9 years ago #

    Do I just add:

    example:

    height: 500px;

    after the width: 97% ??

  5. Kafkaesqui

    Posted 9 years ago #

    Ah, I misunderstood the question. I'm not sure why but this is actually set from the database. You can access the setting through:

    wp-admin/options.php

    Scroll down to default_post_edit_rows.

  6. rvblog
    Member
    Posted 9 years ago #

    I'm using 1.5 strayhorn.

    I don't see "default_post_edit_rows" in the wp-admin/options.php file.

    When in the administration panel/write/post window - the source code for that page shows this:

    <fieldset id="postdiv">
    <legend><a href="http://wordpress.org/docs/reference/post/#post" title="Help with post field">Post</a></legend>

    <div id="quicktags">
    <a href="http://wordpress.org/docs/reference/post/#quicktags" title="Help with quicktags">Quicktags</a>:
    <script src="quicktags.js" type="text/javascript"></script>
    <script type="text/javascript">edToolbar();</script>
    </div><div><textarea rows="9" cols="40" name="content" tabindex="4" id="content"></textarea></div>
    </fieldset>

    I suspect it's just a matter of changing the rows= value. However, the above code appears in more than one *.php file in the wp-admin directory and I'm not sure which *.php file to edit to make the change in height that I'm looking for. (or do I have to make the changes across several *.php files)

    Thanks

  7. Kafkaesqui

    Posted 9 years ago #

    wp-admin/options.php?option_group_id=3

    I seem to see this setting in 1.2, as well. Nevertheless, the only files you'd need to edit would be edit-form.php and edit-form-advanced.php.

  8. rvblog
    Member
    Posted 9 years ago #

    The code in those files is as follows:

    <?php
    $rows = get_settings('default_post_edit_rows');
    if (($rows < 3) || ($rows > 100)) {
    $rows = 10;
    }
    ?>

    Is it just a matter of changing the value of 10 to something like 30?

    Thanks

  9. rvblog
    Member
    Posted 9 years ago #

    Nope

    Tried changing the value to 30 and the height of the edit box did not change.

  10. Kafkaesqui

    Posted 9 years ago #

    $rows = get_settings("default_post_edit_rows");

    Shows that it's getting the setting from the database, so try

    wp-admin/options.php?option_group_id=3

    If not, just change the first $rows line, i.e.:

    $rows = get_settings("default_post_edit_rows");

    to:

    $rows = 30;

  11. rvblog
    Member
    Posted 9 years ago #

    Kaf:

    This did not work for me:

    $rows = get_settings("default_post_edit_rows");

    to:

    $rows = 30;

    But this:

    wp-admin/options.php?option_group_id=3

    worked just fine.

    Thanks a lot for your help.

  12. Kafkaesqui

    Posted 9 years ago #

    Note for future reference: I only just realized this can be set under Options > Writing, "Size of the writing box".

    Really should learn about this thing called WordPress...

  13. djhomeless
    Member
    Posted 8 years ago #

    What about changing the width? I've tried modifying the stylesheet and even changing the code that calls the textarea (increasing the cols up to 60).

    Anyone know? Its driving me up the wall!

    thanks,

    Geoffrey

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.