Remove Ask Question button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2025 05:56 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2025 08:19 AM
Hi @preethigovi ,
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2025 11:14 PM
Hi, I have already commented out it still its appearing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2025 08:26 AM
I commented canpostquestion data in client controller and it worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2025 08:28 AM
Hi @preethigovi,
There's no need to clone the widget.
Instead, simply press Ctrl + Right Click to open the context menu. From there:
-
Navigate to the Instance option.
-
Click the hamburger icon and select Open in Platform.
-
Under the Presentation tab, locate the class of the button and apply:
cssdisplay: 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