Hi John – thanks, really appreciate your help. I see what you’re doing with that code, and I’m keen to get it working.
When I paste that code into functions, however, I get this syntax error:
Your PHP code changes were rolled back due to an error on line 191 of file wp-content/themes/child/functions.php. Please fix and try saving again.
syntax error, unexpected ':'