I don’t know coding, but I got a code that when updated in the header.php file will achieve the above.
I did not find a header file in the child theme folder.I am currently using the ethos child theme.
But i did find a header.php file in the X theme folder[public_html/wp-content/themes/x].
If I update the header.php file in the X theme folder, would this code get undone when the X theme gets updated next?
Is there another way of achieving this?