Remove Ask Question button

preethigovi
Tera Contributor

Hi Team,

 

I need to remove this button in widget in kb portal. I have cloned the OOB widget and try to comment HTML code but its not working.

 

can you help me where im missing.

 

preethigovi_0-1750769729780.png

 

 

preethigovi_1-1750769767672.png

 

5 REPLIES 5

Arafath
Tera Guru

Hi @preethigovi ,

Arafath_0-1750778261553.png

Pls try commenting out the highlighted line (the anchor tag). This should probably hide the Ask Question button.

 

Hope you can try this logic to meet you requirements.

if the solution worked for you plz Accept the Solution and Mark it as Helpful so it could benefit fellow devs. Thank you!

 

Regards,

Muhammad Arafath

 

Hi, I have already commented out it still its appearing

preethigovi_0-1750832056888.png

 

I commented canpostquestion data in client controller and it worked.

Samaksh Wani
Giga Sage
Giga Sage

Hi @preethigovi,

 

There's no need to clone the widget.

Instead, simply press Ctrl + Right Click to open the context menu. From there:

 

  1. Navigate to the Instance option.

  2. Click the hamburger icon and select Open in Platform.

  3. Under the Presentation tab, locate the class of the button and apply:

    css
     
    display: none;

This will effectively hide the button without needing to clone or duplicate the widget.

If you found this helpful, please accept my response and give it a thumbs up!

Best regards,


Samaksh Wani
Rising Star 2023 & 2024