Shortcode Button in editor – Essential Grid

  • Resolved
    Posted in: Highend WP Theme  
  • Customer
    flyinghearts
    February 5, 2020 at 7:38 am #144937

    Can you please help me and tell me how to hide the shortcode button from essential grid in the editor.

    I hide the other shortcode buttons like this:
    <?php
    add_action( ‘after_setup_theme’, ‘highend_child_remove_shortcode_gen’, 99 );
    function highend_child_remove_shortcode_gen() {

    remove_action( ‘init’, ‘hbthemes_shortcode_buttons’ );

    if ( class_exists( ‘RevSliderTinyBox’ ) ) {
    remove_action( ‘admin_head’, array( ‘RevSliderTinyBox’, ‘add_tinymce_editor’ ) );
    }
    }

    if ( isset( $insert_pages_plugin ) ) {
    remove_filter( ‘mce_external_plugins’, array( $insert_pages_plugin, ‘insert_pages_handle_filter_mce_external_plugins’ ) );
    remove_filter( ‘mce_buttons’, array( $insert_pages_plugin, ‘insert_pages_handle_filter_mce_buttons’ ) );
    }
    ?>

    /* add_action(‘admin_enqueue_scripts’, ‘rs_remove_sc_button’, 99);
    function rs_remove_sc_button(){
    remove_filter(‘mce_external_plugins’, array(‘RevSliderShortcodeWizard’, ‘add_tinymce_shortcode_editor_plugin’));
    remove_filter(‘mce_buttons’, array(‘RevSliderShortcodeWizard’, ‘add_tinymce_shortcode_editor_button’));
    } */

    Greetings Melanie

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.