Skip to main content
Hello All, 

 

I have been customizing my Napili Communities layout and we use Salesforce Knowledge for our article publishing. 

 

We have multiple custom fields in our knowledge articles and I have figured out how to target just the field labels to modify them using the below code: 

 

 

.selfServiceArticleLayout .test-id__field-label {}

 

My issue is that I would like to target specific fields whereas the code above targets all field labels

 within an article.​

In an ideal world, I would be able to give two fields a grey background, both the title and the content within the field. 

In the below example, I'd like to take both the Editions Available and the Audience field label and content and contain them within a grey box but I can't seem to do that without also including Details in the same box. 

 

Anyone have any ideas? 

Modifying Targeted Article Fields in Napili Using CSS

1 risposta
0/9000