Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to remove 'Close Modal' text from SP Modal

Sonu Parab
Mega Sage

Hi All,
I want to remove that 'Close Modal' text from SP Modal.

Sonu_Parab_0-1673004908641.png


Thank you

6 REPLIES 6

Hi @Community Alums Thank you for the reply.above threads are useful to remove the Cross 'X' button from modal.but I want to remove the only tooltip part.(Close Modal).

Hi @Sonu Parab ,

we have the same need to remove the "Close modal" tooltip. Did you solve this?


Hello @Smith Johnson 

Yes, I have removed the Close Model text.

In my case I have added below script in the Client Controller section of the widget.

 

setTimeout(function() {
 var button = document.querySelector('button');
button.removeAttribute('data-toggle');
button.removeAttribute('title');
 }, 0); 

 

Thank you,