Support » Fixing WordPress » How to disable content part in wp-admin/post-new.php

Viewing 5 replies - 1 through 5 (of 5 total)
  • You really don’t want to get rid of that. There’s huge benefits to that especially if you’re going to use builders like Elementor. The benefit for me is being able to use the builder to write content for the desktop site and use that content box that you’re wanting to delete for the AMP content.

    Sunny

    (@sunnyujjawal)

    Thanks @gerrdude

    You really don’t want to get rid of that.

    I really want to get rid of it.

    There’s huge benefits to that

    I know all this from SEO point of view also.
    BUT my them have some features to support this option.

    If you want you can use a child theme and put this into the functions.php file.

    add_action(‘init’, ‘my_remove_editor_from_post_type’);
    function my_remove_editor_from_post_type() {
    remove_post_type_support( ‘page’, ‘editor’ );
    }

    The bottom of the code where you define which pages you want to remove the capability.

    Don’t use the above code, it doesn’t work but this code did work for me.

    You would put this into a child themes functions.php file

    add_action( ‘init’, function() {
    remove_post_type_support( ‘post’, ‘editor’ );
    remove_post_type_support( ‘page’, ‘editor’ );
    }, 99);

    For me that code removed the default wordpress editor and moved my pagebuilder up to the top. It’s good if you don’t want to do so much scrolling.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.