How can i remove unneeded button "Add BWS Shortcode" from tiny editor?
-
This button isnt needed for me and it is a very serious obstacle, taking space. How to remove it? I have not found. Please help in this regard.
-
Hi,
It is necessary to edit plugin’s code. You can add the following styles for “Add BWS Shortcode” button:
.mce-bws_shortcode_button { display: none; }Please note that for their applying it is necessary to use
add_editor_style()function and appropriate hooks in “functions.php” of your theme. For more info, please see https://developer.ww.wp.xz.cn/reference/functions/add_editor_style/.Sincerely,
BestWebSoft Support Teami would like remove the code from plugin.
i found next code in bws_functions.phpif ( ! function_exists ( 'bws_plugins_admin_head' ) ) { function bws_plugins_admin_head() { global $bws_shortcode_list, $wp_version, $post_type; if ( isset( $_GET['page'] ) && $_GET['page'] == "bws_plugins" ) { ?> <noscript> <style type="text/css"> .bws_product_button { display: inline-block; } </style> </noscript> <?php } if ( 4.2 > $wp_version ) { $plugin_dir_array = explode( '/', plugin_basename( __FILE__ ) ); $plugin_dir = $plugin_dir_array[0]; ?> <style type="text/css"> .bws_hide_settings_notice, .bws_hide_premium_options { width: 11px; height: 11px; border: none; background: url("<?php echo plugins_url( $plugin_dir . '/bws_menu/images/close_banner.png' ); ?>") no-repeat center center; box-shadow: none; float: right; margin: 8px; } .bws_hide_settings_notice:hover, .bws_hide_premium_options:hover { cursor: pointer; } .bws_hide_premium_options { position: relative; } </style> <?php } if ( ! empty( $bws_shortcode_list ) ) { ?> <!-- TinyMCE Shortcode Plugin --> <script type='text/javascript'> var bws_shortcode_button = { 'label': '<?php esc_attr_e( "Add BWS Shortcode", "bestwebsoft" ); ?>', 'title': '<?php esc_attr_e( "Add BWS Plugins Shortcode", "bestwebsoft" ); ?>', 'icon_url': '<?php echo plugins_url( "images/shortcode-icon.png" , __FILE__ ); ?>', 'function_name': [ <?php foreach ( $bws_shortcode_list as $key => $value ) { if ( isset( $value['js_function'] ) ) echo "'" . $value['js_function'] . "',"; } ?> ], 'wp_version' : '<?php echo $wp_version; ?>' }; </script> <!-- TinyMCE Shortcode Plugin --> <?php if ( isset( $post_type ) && in_array( $post_type, array( 'post', 'page' ) ) ) { $tooltip_args = array( 'tooltip_id' => 'bws_shortcode_button_tooltip', 'css_selector' => '.mce-bws_shortcode_button', 'actions' => array( 'click' => false, 'onload' => true ), 'content' => '<h3>' . __( 'Add shortcode', 'bestwebsoft' ) . '</h3><p>' . __( "Add BestWebSoft plugins' shortcodes using this button.", 'bestwebsoft' ) . '</p>', 'position' => array( 'edge' => 'right' ), 'set_timeout' => 2000 ); if ( $wp_version < '3.9' ) $tooltip_args['css_selector'] = '.mce_add_bws_shortcode'; bws_add_tooltip_in_admin( $tooltip_args ); } } } }will it help to resolve the problem, if i delete it?
or i have to remove another code?Hi,
According to our license agreement, you can modify the code of your product copy. However, please note the following:
1) All changes will be lost after update;
2) We don’t provide support services for modified products and we don’t guarantee their correct work (http://bestwebsoft.com/support-policy/).Sincerely,
BestWebSoft Support TeamOK. Thank you.
I removed your module and installed another.
I appreciated the module and assistance, deserved in my opinion.
Good luck.Hi,
Thank you for your reply. We are glad that you have found the solution. Feel free to contact our support team with any questions in future. Also, you can do it via our Help Center (http://support.bestwebsoft.com/) in order to receive a faster reply.
Sincerely,
BestWebSoft Support TeamObnoxious is right. The “Add WBS Shortcode” button is HUGE, literally four times larger than any other button in my page editor.
I was already getting tired of their ads taking over my dashboard. No need to endure this when there are so many better contact form plugins run by less obnoxious developers. Just hit delete.
Hi,
Thank you for your kind offer. We will consider it, and if we deem it necessary, we will make the necessary changes to the plugin.
Sincerely,
BestWebSoft Support Team
The topic ‘How can i remove unneeded button "Add BWS Shortcode" from tiny editor?’ is closed to new replies.