Hello,
If you use child theme you need add the code into style.css in your child theme folder.
Regards, Eva Kemp.