WordPress.org

Ready to get started?Download WordPress

Forums

Removing the Post Preview (1 post)

  1. Mark (podz)
    Support Maven
    Posted 8 years ago #

    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 :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags