Thanks! It worked! Kindly mark this thread as solved.
@robin-w
I undo my post above in functions file then paste the code you provide.
Then…
The site.domain page isn’t working
site.domain is currently unable to handle this request.
HTTP ERROR 500
please help