From where we can set CSS style for all knowledge articles body.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2023 07:57 AM
Hi All,
From where we can set CSS style for all articles body.
For EX : I want to set follo. CSS properties for all articles.
-Body
Font Family: Helvetica Now
Text Font Style: Medium
Font Size: 14px
Line Height: 100%
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2023 08:03 AM
Hi @Pallavi pawar ,
You can set CSS for all kB article by 2 approaches:
1. Customizing the Service Portal Theme:
- Edit the theme and locate the CSS section.
- Add a CSS rule targeting the knowledge article body. You can use the 'article' tag or a specific class or ID assigned to the knowledge article body element.
article {
font-size: 14px;
line-height: 1.5;
color: #333333;
/* Add more CSS rules as per your requirement */
}
2. Using a Content Block:
- Add your CSS code to the content block, specifically targeting the knowledge article body and Assign the content block to the knowledge article page or widget.
<style>
article {
font-size: 14px;
line-height: 1.5;
color: #333333;
/* Add more CSS rules as per your requirement */
}
</style>
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma
Regards,
Riya Verma