Viewing 6 replies - 1 through 6 (of 6 total)
  • Yes. Just don’t press ‘Edit with Elementor’ on them.

    Thread Starter CarolineElisa

    (@carolineelisa)

    Thanks Ben, but not clicking something is not the same as not even giving the option, which is what disabling would do.

    As this can be done by post type I thought there might be a hook to which I can send IDs?

    Yes, I agree. These needs to a way to disable, that is do not show Elementor button at all, for specific Pages.

    Absolutely. I’ve been looking for this kind of thing since I started using page builders. For many sites, they’re only needed on certain pages, and I wouldn’t want a site owner / client to accidentally mess up something that wasn’t built with Elementor.

    I need Elementor to be totally disabled on a single page. I am having a conflict with another plugin I cannot solve. And I do not need Elementor on that page anyway.

    katielgc

    (@katielgc)

    Hi Guys,

    I had the same issue this was conflicting with woocommerce’s shop page. I used this code to disabled on this page :

    
    add_action( 'init', 'remove_editor_init' );
    
    function remove_editor_init() {
        // If not in the admin, return.
        if ( ! is_admin() ) {
            return;
        }
    
        // Get the post ID on edit post with filter_input super global inspection.
        $current_post_id = filter_input( INPUT_GET, 'post', FILTER_SANITIZE_NUMBER_INT );
        // Get the post ID on update post with filter_input super global inspection.
        $update_post_id = filter_input( INPUT_POST, 'post_ID', FILTER_SANITIZE_NUMBER_INT );
    
        // Check to see if the post ID is set, else return.
        if ( isset( $current_post_id ) ) {
            $post_id = absint( $current_post_id );
        } else if ( isset( $update_post_id ) ) {
            $post_id = absint( $update_post_id );
        } else {
            return;
        }
    
        // Don't do anything unless there is a post_id.
        if ( isset( $post_id ) && $post_id === wc_get_page_id( 'shop' ) ) {
                remove_post_type_support( 'page', 'elementor' );
        }
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘is it possible to disable elementor for individual pages?’ is closed to new replies.