To give an ID to a specific text element in WordPress, follow these steps: 1) Open the post or page in the WordPress Editor (Gutenberg or classic editor but I will be using Gutenberg editor) where you want to add the ID. 2) In the Gutenberg editor, click on the text block you want to give ID. On the right-hand side, select Block and there locate the Advanced field. 3) In the Advanced tab, you'll see an option to add a CSS class or an HTML anchor. 4) Enter your desired ID name in the "HTML Anchor" field, without using any spaces or special characters. However, in the classic editor, switch to the Text mode. Locate the text you want to add the ID to and wrap it with an HTML tag like or . Then, add id="your-desired-id" inside the opening tag. For example: Your text After adding the ID, save or update the post or page. Then you can use these id in CSS code for changing text color.