I’ve been using WordPress 2.0 for quite some time already since the announcement of the upgrade. However, I’ve been so busy that I haven’t given much thought on the features and the admin tools.
Now, if you are also a WordPress 2.0 user, you’d notice that one of the new features is the preview window. Although it does provide you a sample of your post with all the themes and images of your site, it is somehow a bandwidth hog.
So if you’re like me who likes to post and perform edits quickly, here’s how to disable the preview window.
Find this block of code in …/wp-admin/post.php. You can find them on lines 82-85.
<div id='preview' class='wrap'>
<h2 id="preview-post"><?php _e('Post Preview (updated when post is saved)'); ?> <small class="quickjump"><a href="#write-post"><?php _e('edit ↑'); ?></a></small></h2>
<iframe src="<?php echo add_query_arg('preview', 'true', get_permalink($post->ID)); ?>" width="100%" height="600" ></iframe>
</div>
Replace the block of code with:
<!-- // disable post preview
<div id='preview' class='wrap'>
<h2 id="preview-post"><?php _e('Post Preview (updated when post is saved)'); ?> <small class="quickjump"><a href="#write-post"><?php _e('edit ↑'); ?></a></small></h2>
<iframe src="<?php echo add_query_arg('preview', 'true', get_permalink($post->ID)); ?>" width="100%" height="600" ></iframe>
</div>
// disable post preview -->
I simply placed the block of code inside comment tags <!–– comments ––>
There you have it. I hope this helps!
Subscribe to Mesedilla Studios Updates
Related Topics
- Mesedilla Studios goes mobile web!
- WPBlacklist 2.6
- Mesedilla Studios v7.0 Beta
- Wordpress Plugin: Remind Me
- Google’s Gmail
5 Responses to “How to Disable the Preview Window in WordPress 2.0.4”
Leave a Reply


















[...] Looked all around the internet and I found this good how-to from http://www.mesedilla.com. I just commented out some lines in wp-admin/post.php and the preview window dissapeared. It is really easy. Thank you Fritz from mesedilla.com. Category: Wordpress [...]
January 10th, 2007 @ 12:59 PM
hello friend nice helpful information you have published,
it was very useful for me.
i was searching for this very long in google, but google was not showing u r page
but i got a reference to your blog from another blog which mentioned
about your work and also refered ur site
http://www.neyokes.com/2007/01/10/disable-the-preview-window-in-wordpress-20/
February 27th, 2007 @ 05:01 PM
If you really are trying to save bandwidth, you want to stop the transmission of everything that would display in that block, so you could use php comment markers to completely eliminate that block from being dished out by the server:
ID)); ?>” width=”100%” height=”600″ >
// disable post preview */ ?>
March 9th, 2007 @ 01:39 AM
:doh_tb:Oops - the clean-up scripts stripped out the important part of that last comment (a preview would be a nice feature , just replace the html comments with php open and close tags and php multi-line comment tags /* */
- I apologize in advance for any demonstrative portions of this post that get eaten by the filters -
March 9th, 2007 @ 01:46 AM
[...] http://www.mesedilla.com/archives/2006/11/15/how-to-disable-the-preview-window-in-wordpress-204/ [...]
July 23rd, 2007 @ 12:21 PM