Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

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


keeper7925

Question

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 post
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...