With an image in the background, I need the logo on my homepage to be white, I had added some custom code to achieve this but it no longer works. Not sure what happened, perhaps an update from Squarespace.
This is the code I currently have:
<script>
window.onload = function() {
document.querySelectorAll('.header-title-logo img')[0].src = 'https://static1.squarespace.com/static/5fd925449f6d8f67d97815cb/t/6043b664c343a45fe3d1e965/1615050340420/Graham-Green-white-cropped-150.png';
};
</script>
Hoping someone can point me in the right direction to resolve this issue.