I was wondering if it is possible to create an action to place in the function file to turn the widget New message / announcement widget text and count colour to read as below CSS via an if statement when the count is greater than “0”
Do you have anything already in the arsenal to do this or would it need be a hook in in the function file?
And if so which function file would it be best to place it in as there would be my child function file and two of your core function file , the main and pro folder?
There is FEP Empty Widget where you can use hook to show what you want. You can also check “Display help to configure this widget in front end?” when setup this widget so in front-end it will show which php code you need to hook to that widget.
Any custom code always goes to child theme’s functions.php (or if you have custom plugin for this then in that plugin). That way you can update plugins and themes without loosing your custom code.