Hey,
How to remove “layerslider” and “Insert Theme Shortcode” Icons from TinyMCE?
I want to tidy my editor for my client users.
Thank you.
Hey dillionline,
Thank you for using Enfold.
1.) Would you like to deactivate the layer slider plugin completely? If you want to disable it, please follow this short thread.
// http://kriesi.at/documentation/enfold/deactivate-the-layerslider-plugin/
2.) Hide the shortcode generator icon with the following code.
/* Hide shortcode wand */
function admin_head_mod() {
echo '<style type="text/css">div[aria-label="Insert Theme Shortcode"] { display: none !important; }</style>';}
add_action('admin_head', 'admin_head_mod');
Best regards,
Ismael
Hey,
thanks “Insert Theme Shortcode Icon” is disabled now.
Can I hide the “Layer Slider Icon” the same way?
I dont want to remove the hole plugin.
Thanks.
Hi,
Try to replace Ismael’s code to this:
/* Hide shortcode wand */
function admin_head_mod() {
echo '<style type="text/css">';
echo 'div[aria-label="Insert Theme Shortcode"] { display: none !important; }';
echo 'div[aria-label="Add LayerSlider"] { display: none !important; }';
echo '</style>';
}
add_action('admin_head', 'admin_head_mod');
Let us know if it works :)
Best regards,
Nikko
Yes, it works. Thank you very much.
Hi,
Glad we could help :)
Best regards,
Nikko