Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

venky18
Tera Contributor

Does anyone succeeded in removing the closemodal text. If yes plz help me here.Thank you

Hi @venky18,

 

Please take a look at the image below,  where you can see how the close button is defined:

AttilaVarga_0-1748599665626.png

 

When you move the mouse above the button X, an additional HTTP element (DIV) is added:

AttilaVarga_1-1748599810554.png

 

This is the tooltip which appears when the button becomes focused. So what you need to do, to write a CSS selector and make this HTTP component hidden.

 

In my solution I added the following CSS definition to the corresponding page.

 

.modal-header > .tooltip {
  display: none !important;
}

 

 

In your case the selector may be different.

 

I hope this information helps.