WordPress.org

Support

Support » How-To and Troubleshooting » Removing the Post Preview

Removing the Post Preview

  • Mark (podz)

    @podz

    Support Maven

    Working on the basis that if one person asks so will another …

    When you save a post you see a preview of that post further down the editing screen. If you want to not have that (it may increase page load time) then you need to edit a file.

    /wp-admin/post.php
    lines 81-84
    <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 &uarr;'); ?></a></small></h2>
    <iframe src="<?php echo add_query_arg('preview', 'true', get_permalink($post->ID)); ?>" width="100%" height="600" ></iframe>
    </div>

    Remove those.

    Caveat: tested briefly and the blog did not explode. Keep a backup. Don’t blame me if it all goes horribly wrong 🙂

  • The topic ‘Removing the Post Preview’ is closed to new replies.