This is the latest version of Mesedilla Studios... v8!
Please bear with me, I'm still working on some pages and I'm not yet done with the pixel art. Thanks for visiting!
-- Fritz

How to Disable the Preview Window in WordPress 2.0.4

Posted @ 11:54 AM
Visitors: 653 views
Filed under: Softwares, Studios News
Tagged with: , , ,

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!

Comments (5)
Copyright © 2001-2008 Mesedilla Studios
Top |  Home |  About Mesedilla Studios |  Privacy Policy |  Entries RSS |  Comments RSS