From where we can set CSS style for all knowledge articles body.

Pallavi pawar
Tera Contributor

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

Riya Verma
Kilo Sage
Kilo Sage

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