My site is at https://gfa.wishfulthinking.us/
I updated the image for the logo on our site, and suddenly the Hook Element that switched to the white menu (for pages with image backgrounds) stopped working. It has been working fine until I made this update to the image files. Here’s the text of the php.
<?php if ( is_page( array( 12, 179, 'Blog' ) ) ) : ?>
<script>
function getLogo() {
var img = document.getElementsByClassName('header-image')[0];
img.src='https://gfa.wishfulthinking.us/wp-content/uploads/2021/01/Logo_subtitle_white_updated.png';
}
getLogo();
</script>
<?php endif; ?>
The hook I am assigning this is wp_footer. And the display rules is all pages.