WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Turning off Post Preview in 2.1 (10 posts)

  1. Keilya
    Member
    Posted 7 years ago #

    Hello

    I was wondering if anybody know what lines of post-new.php to delete to get rid of the Post Preview Iframe (when composing new posts)?

    For all the previous versions, I had been following the instructions provided by Podz in this thread: http://wordpress.org/support/topic/62137?replies=12#post-331687

    However, I don't think that will work now as I don't find those lines in there. There are similar ones in post.php but they're not exactly identical, so I wouldn't want to delete anything and screw wordpress up accidently.

    Thank you. ^^

  2. pianosteve
    Member
    Posted 7 years ago #

    http://asymptomatic.net/.../two-dinky-but-useful-wordpress-plugins references a "Kill Preview" plugin, but I am unable to find out for sure if it's compatible with 2.1

    This would be much more preferable to editing the post-new.php file, in my very humble opinion! :)

  3. Keilya
    Member
    Posted 7 years ago #

    Ahh thanks...but since the coding for post preview has changed in 2.1, (Even the 'Write' Menu has changed from post.php >> post-new.php) it's highly likely that the plugin won't work properly. :3 I'll give it a try though...

    Meanwhile, do anybody else know anymore solutions for this? >.<

  4. Keilya
    Member
    Posted 7 years ago #

    Okays...I sorta tried deleting some codes myself and I think I hit the Jackpot.

    In wp-admin/post.php

    Delete these lines:

    <div id='preview' class='wrap'>
    <h2 id="preview-post"><?php _e('Post Preview (updated when post is saved)'); ?></h2>
    <iframe src="<?php echo attribute_escape(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" width="100%" height="600" ></iframe>
    </div>

    And it works! (:

  5. aljuk
    Member
    Posted 6 years ago #

    Why on earth would you want to remove the preview? How bizarre...

  6. whooami
    Member
    Posted 6 years ago #

    lots of people dont use it. I dont, for example, and completely removed the code from my admin area a long time ago. I know how to post properly so that I dont have to preview what I'm doing.

    I know you just posted in another thread that you like that feature, but realize that because you do, doesn't mean others do.

    In my opinion, this ought to have been one of those items that was pluginized in the first place.

    There are numerous more minor plugins that havent been added to the core, much less even considered for addition, that would have added more than that "feature".

  7. moshu
    Member
    Posted 6 years ago #

    FYI: it was removed by matt - so, don't hope it will be back soon :)
    http://trac.wordpress.org/changeset/5159

  8. aljuk
    Member
    Posted 6 years ago #

    I just found the preview button... I take it all back!

  9. moshu
    Member
    Posted 6 years ago #

    aljuk,
    before you continue posting, please, read my reply in your other topic. It has NOT been removed, jus moved.

  10. Keilya
    Member
    Posted 6 years ago #

    Well, in response to aljuk firstly, I don't need the preview like what whooami said. Secondly, removing it reduces loading time and conserves bandwidth. Although I don't really need to conserve bandwidth, I just get qutie annoyed when all those few seconds of waiting time to post is due to the preview iframe. >.> And I don't like the idea how I am leeching on my own bandwidth when I don't need it. (:

Topic Closed

This topic has been closed to new replies.

About this Topic