Jump to content

Logo code not applying to pages only from navigation off the home page.

Recommended Posts

Site URL: https://www.integralchristiannetwork.org

I have put in some specific code for my logo to be white on my home page, but gold on other pages (to fit with the homepage background image). However, when I click on a link from the homepage to any other page on my site, the logo is still white and therefore invisible. But when I refresh the page it goes to gold. If I access any page from an external link or any other way, the logo shows up in gold. So it's only when I go from the home page to any of my other pages.

I've attached the code I've used in two places. Any help would be much appreciated! Thanks!

This is the code that was entered in the “Code Injection - Header”:
 
<script>
$(function(){
$('.Header--bottom:not(.Header--overlay)').find('img').attr('src', 'https://integralchristiannetwork.org/s/ICN_LogoIcon_Gold.png')})
</script>
 
This code is injected in the “PAGE HEADER CODE INJECTION” under “Advanced” on the “HOME” Index page :
 
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"> </script> <script> $(function() {$('.Header-branding-logo').attr('src', 'https://integralchristiannetwork.org/s/ICN_LogoIcon_White.png' )}) </script>
Link to comment
  • Replies 1
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.