• In the wordpress editor shows a P as default, how can i remove this P below the text area i can see the letter P. Is it possible to remove?, in wordpress 3.6.1 i have removed this P but in latest version i couldn’t see that please help

Viewing 8 replies - 1 through 8 (of 8 total)
  • I would like to remove this letter p too.
    It appears in Visual mode, not Text mode.

    Thread Starter naveenbos

    (@naveenbos)

    Same question i have asked in the stack overflow i got one reply from there,
    One solution is

    /** Edit TinyMCE **/
    function myformatTinyMCE($in) {
        $in['statusbar'] = false;
    
        return $in;
    }
    add_filter('tiny_mce_before_init', 'myformatTinyMCE' );

    Second Solution is

    function my_theme_add_editor_styles(){
        ?>
            <style type="text/css">
                .mce-path   {display: none!important;}
            </style>
        <?php
    }
    add_action( 'init', 'my_theme_add_editor_styles' );

    it is a css option.

    Thanks, the second solution works, although I had to tweak the css:

    function my_theme_add_editor_styles(){
        ?>
            <style type="text/css">
                .mce-path-item.mce-last {
                    display: none !important;
                }
            </style>
        <?php
    }
    add_action( 'init', 'my_theme_add_editor_styles' );

    A 3rd solution is to add a custom css file to your theme css folder, named my-admin-style.css:

    /* removes letter p below text area in tinymce editor */
    .mce-path-item.mce-last {
        display: none !important;
    }

    Then add this function, load_custom_wp_admin_style(), to your theme functions.php file:

    function load_custom_wp_admin_style() {
            wp_register_style( 'custom_wp_admin_css',
            get_template_directory_uri() . '/css/my-admin-style.css', false, '1.0.0' );
            wp_enqueue_style( 'custom_wp_admin_css' );
    }
    add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' );

    Why would you want to do this?

    A css file is where you expect to find css styles, rather than looking in a php file. It makes it convenient to add future admin css changes.

    Also, I did not like where solution two placed the style in the admin HTML web page – above the head tag, although it seemed to work ok.

    No, what I meant was, why do you want to remove the p?

    The letter p is not useful, and just clutters up the page.
    Since it is a single character with no label, it appears to the user as an extraneous character. In earlier versions of Worpress it had a label, Path, but even then it was completely worthless.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to remove the p from the default wordpress editor?’ is closed to new replies.