I changed the header.php template in wp-content/themes/generatepress/inc/structure to accomplish this but I’m using a generatepress_child theme and would like to change it there. (I tried using copy/paste code to functions.php in the child theme from earlier support threads to no avail.)
How can I add this change to the functions.php file in my child theme?
I’m using latest versions of GP and GP Premium. WP 5.3.2. PHP 7.3.X.
By the way, when I first pasted your snippet into the Additional CSS pane of the Customizer and Published, the preview pane didn’t show any change but the live page (in a different browser) did. When I removed it from the CSS pane, the preview pane showed the change! I don’t have any caching plugins installed yet.
Exiting the Customizer and then going back to it with the pasted CSS, everything looked and worked as it should.