1. Firslty please follow the following steps to go to TOP BAR SETTING
Go to Dasboard => Appearance => Customize => Top Bar Setting => Then if you have select in the Hide Top Bar then please do not select it => After that you can see there Short Announcement box where you can use the code like below:
Then save it.
2. After that if you want to change the color of Top Bar then you can get all the option there.