Remove Visual Tab from your WordPress Post editor - Kvcodes
X

Congrats, You are Subscribed to Receive Updates.

Remove Visual Tab from your WordPress Post editor


Remove Visual Tab from your WordPress Post editor is necessary some projects. So here I gave some code to disable Visual Tab from the WordPress Post editor. I mean WordPress TinyMCE Editor.

kv_disable_visual-tab

Just add the following line of codes into your  Theme functions.php or just paste it on your Plugins Main file.

if ( ! isset( $content_width ) )	$content_width = 620;	
	
add_filter( 'admin_footer', 'kv_remove_visual_tab', 99);

function kv_remove_visual_tab(){ 
	echo '  <style type="text/css">
			a#content-tmce, a#content-tmce:hover, #qt_content_fullscreen{        display:none;      }
			</style>';
	echo '  <script type="text/javascript">
			jQuery(document).ready(function(){
				jQuery("#content-tmce").attr("onclick", null);
			});
			</script>'; 
}

The Above function helps to disable the Visual tab from your  Post editor.

 

commenter

About Varadharaj V

The founder of Kvcodes, Varadharaj V is an ERP Analyst and a Web developer specializing in WordPress(WP), WP Theme development, WP Plugin development, Frontaccounting(FA), Sales, Purchases, Inventory, Ledgers, Payroll & HRM, CRM, FA Core Customization, OpenCart Theme Development, PHP, HTML, CSS, jQuery, Bootstrap development and content SEO.

Comment Below

Your email address will not be published. Required fields are marked *

*

Current ye@r *

Menu

Sidebar

Subscribe E-mail Updates

Congrats, You are Subscribed to Receive Updates.

Advertisement

Category Posts