keeper7925 Posted October 13, 2020 Posted October 13, 2020 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 src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <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>
tuanphan Posted October 14, 2020 Posted October 14, 2020 Home > Design > Site Styles > Ajax Loading > Disable Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.