Hi,
An interesting fact. I had the same problem and I picked the right code in my case with Catch Evolution… and it didn’t work. I tried everything possible in my child theme (that is working fine up to now) and nothing happened. Then I had an idea, and introduced exactly the same code in the “Custom CSS” from the theme, and it worked immediately.
A reason for it, a child theme not working for some code?