Question:

Sharepoint 2016 How to change (ONLY) the Announcements webpart title font?

Addison: 18 January 2022

I have 4 webparts on a site page in sharepoint. 3 of the webparts are a content editor and I added 1 announcements webpart. I was able to change the webpart titles of the content editor webparts, however I cannot seem to change the font color for the announcements webpart. Does anyone know how to do this?

Answer:
William: 18 January 2022

If the announcements web part title is "Announcements", we can add the following style to a script editor web part to change the color of this web part title.

<style>
span[title='Announcements'] a{
    color:blue !important;
}
</style>

Or we can use this.

<style>
.ms-webpart-titleText a{
    color:blue !important;
}
</style>

enter image description here