How to hide "The Grid" Shortcode Icon

Hi Team X,

Please can you advise how to hide “The Grid” icon from the post/page editor - some fancy css or js.
I can’t seem to find any setting to remove it in the plugin, or Adminimize… it’s something we can not display to the website owner who is updating posts.

Many thanks :slight_smile:

Hi @DeeDesign,

Thanks for writing in.

I have tried my best to search for answers . Unfortunately, there is no related thread or answers specific to that icon. There is ways on how to remove icons in the wordpress page settings however with grid there is none.

I recommend that it would be best that you will contact a developer to this concern.

Thank you so much for understanding.

Thank you @nico - can we contact “The Grid” developers?
I did try but they require a license code to get into the support system.
Can you point us in the right direction to get them to assist?

Hi,

You can get rid of it using filters.

Kindly refer to the links below.


Hope that helps.

Thank you @paul.r

I added this to the Global js without any luck - no changes.
Any other ideas? Can we hide the image to “The Grid” shortcode with css?

Hello There,

To resolve your issue, assuming that the child theme is set up, please add the following code in your child theme’s functions.php file

// Remove The Grid icon in the TinyMCE buttons
// =============================================================================
function myplugin_tinymce_buttons( $buttons ) {
  //Remove the bold button
  $remove = 'the_grid';

  //Find the array key and then unset
  if ( ( $key = array_search( $remove, $buttons ) ) !== false )
    unset( $buttons[$key] );

  return $buttons;
 }
add_filter( 'mce_buttons', 'myplugin_tinymce_buttons', 999 );
// =============================================================================

We would loved to know if this has work for you. Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.