htmlcsssalesforcesalesforce-communities

Salesforce Community: Using CSS to hide fields on Articles


In the Article Content, Salesforce displays a few things that make the article heavy and not user-friendly. Only using CSS can you hide fields you don't want displayed. In my case I'm looking to remove the Title, URL Name, Question, and Answer (title only, however, not a huge problem if it stays).

Everything in the orange box is to be removed. "ANSWER" can stay or leave, not a huge deal


Solution

  • The CSS override I have now that has helped is:

    .slds-form.slds-form_stacked .slds-gutters_small:nth-child(-n+4) {
        display: none;
    }
    
    .test-id__field-value {
        padding-top: 25px;
        padding-bottom: 50px
    }