Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #702008

    Hey,

    How to remove “layerslider” and “Insert Theme Shortcode” Icons from TinyMCE?
    I want to tidy my editor for my client users.

    Thank you.

    #702911

    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

    #704443

    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.

    #705980

    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

    #709895

    Yes, it works. Thank you very much.

    #710092

    Hi,

    Glad we could help :)

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.