Support » Plugin: Front-end Editor » [Plugin: Front-end Editor] How to Get Front-End Editor to work with Blank Page template

  • I love front-end editor and would like it to work even when I am suppressing the header, sidebar and footer in WordPress.

    So right now I have a page template that just displays the content with nothing else. See below.

    I’d like to (1) suppress wpautop and (2) load the script for front-end editor.

    This would give me (and perhaps many others) a great way to port old HTML pages into a WordPress database and also be able to edit it “on line” using front page editor.

    Here’s my blank page template (though the remove filter isn’t working, I don’t know why:

     * Template Name: Completely Blank
    remove_filter (‘the_content’, ‘wpautop’)
     <!-- Display the Post's Content in a div box. -->
     <div class="entry">
       <?php the_content(); ?>

    [Please post code snippets between backticks or use the code button.]

    <p>How do I get Front-End Editor to load in here?</p>

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author scribu


    Before </head>, add the following line:

    <?php wp_head(); ?>

    Before </body>, add the following line:

    <?php wp_footer(); ?>

    If the <head> and <body> tags are within the post content, you will have to do a better job of importing those static html pages. Here’s a plugin that might help:

    I’d like to avoid using wp_head and wp_footer, since they are otherwise setup and being used for normal blog pages.

    I have a normal blog, but want to be able to “break away” from it for special pages. So, I intend to use the “blank page” template whenever I want to turn off wordpress template and having a unique page that is basically just html, with the exception that I want it to include Front-End editor if I am logged in.

    So I’d like to have a snippet of code that I could put directly into the content manually, and just before the </body> tag at the end of my content, that will run Front-Ed Editor…if I am logged in as Admin.

    Is that possible?

    Plugin Author scribu


    I already gave you the snippets of code.

    Don’t confuse wp_head() with get_header().

    I tried your suggestion but it brings in page formatting and background images, style sheets and other scripts which I don’t need or want.

    I’d like a template that truly gives only what I put in the HTML content and Front-End Editor.

    For example, shouldn’t I be able to just conditionally add the Front-End Editor script that appears in the footer area (see below) below the_content() call in the blank page template?

    But there is clearly something missing from the header section, and it is unclear what code I need to get the script to work. (Perhaps one of the many jquery links that appear when I add wp_head?)


    <script type='text/javascript'>
    var FrontEndEditor = {}; = {"save_text":"Save","cancel_text":"Cancel","fields":["the_title","the_content","editable","the_excerpt","the_category","the_tags","the_terms","post_meta","post_thumbnail_html","comment_text","single_cat_title","single_tag_title","term_description","the_author_description","dynamic_sidebar_params","bloginfo","editable_option","editable_image"],"ajax_url":"http:\/\/\/wp-admin\/admin-ajax.php","spinner":"http:\/\/\/wp-admin\/images\/loading.gif","nonce":"bbed21c25d","controls":{"edit":"Double-click to edit"},"nicedit":{"src":"http:\/\/\/wp-content\/plugins\/front-end-editor\/editor\/nicedit\/nicEdit.js?ver=0.9r23","iconsPath":"http:\/\/\/wp-content\/plugins\/front-end-editor\/editor\/nicedit\/nicEditorIcons.gif","buttonList":["bold","italic","underline","left","center","right","justify","ol","ul","subscript","superscript","strikethrough","removeformat","indent","outdent","hr","fontSize","fontFamily","fontFormat","forecolor","bgcolor","link","image","xhtml"],"link":{"visit":"Visit","change":"Change","remove":"Remove"}},"admin_url":"http:\/\/\/wp-admin\/","image":{"change":"Change Image","insert":"Insert Image","revert":"(Clear)","tb_close":"http:\/\/\/wp-includes\/js\/thickbox\/tb-close.png"}};
    var nicEditL10n = {"Click to Bold":"Click to Bold","Click to Italic":"Click to Italic","Click to Underline":"Click to Underline","Left Align":"Left Align","Center Align":"Center Align","Right Align":"Right Align","Justify Align":"Justify Align","Insert Ordered List":"Insert Ordered List","Insert Unordered List":"Insert Unordered List","Click to Subscript":"Click to Subscript","Click to Superscript":"Click to Superscript","Click to Strike Through":"Click to Strike Through","Remove Formatting":"Remove Formatting","Indent Text":"Indent Text","Remove Indent":"Remove Indent","Horizontal Rule":"Horizontal Rule","Select Font Size":"Select Font Size","Select Font Family":"Select Font Family","Select Font Format":"Select Font Format","Add Link":"Add Link","Remove Link":"Remove Link","Change Text Color":"Change Text Color","Change Background Color":"Change Background Color","Add Image":"Add Image","Upload Image":"Upload Image","Edit HTML":"Edit HTML"}</script>
    <script type='text/javascript' src=''></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    var thickboxL10n = {
    	next: "Next >",
    	prev: "< Prev",
    	image: "Image",
    	of: "of",
    	close: "Close",
    	noiframes: "This feature requires inline frames. You have iframes disabled or your browser does not support them."
    /* ]]> */
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Front-end Editor] How to Get Front-End Editor to work with Blank Page template’ is closed to new replies.