How to Reduce Banner Image Width(branding) in Knowledge Portal (Service Portal)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2025 01:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2025 02:56 AM
It should not be I tried with a small size image and it worked as small for me on the portal.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2025 02:52 AM - edited ‎04-16-2025 03:08 AM
Use Custom CSS (Preferred)
Go to:
Service Portal > Themes
(Edit the theme applied to your Knowledge Portal)In the CSS Variables or CSS field, add a rule like:
You can also use width instead of max-width if you want it to be a fixed size:
Clear your cache (or do a hard refresh) to see the changes.
✅Option 2: Page-specific CSS (using a Widget)
If you want to apply it only to a specific page:
Add a Simple CSS widget or a custom widget to that page.
In that widget, inject the following CSS:
✅Extra Tip:
If the image inside the container is still stretching full width, you may need to also target the <img> tag:
Hope the answer has helped you, please mark the answer correct/helpful. Thank you.