Guest Posted April 10, 2020 Share Posted April 10, 2020 Site URL: https://www.17secondsagency.com/ Hi, I am trying to use an alternate logo for a few pages on my client's site. I've tried a couple CCSS workarounds and none of them seem to work with the Nolan template. I've included a screen shot of one of the code blocks I was trying to use. Any ideas? Link to comment
tuanphan Posted April 10, 2020 Share Posted April 10, 2020 Your code is jQuery, not CSS. You need to insert jQuery at Page Settings > Advanced > Header. Each page has page header Also, you need to declare this line to before above code, unless above code won't work. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> 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!) Link to comment
Guest Posted April 12, 2020 Share Posted April 12, 2020 Hi, thanks for your suggestion. I tried entering the two parts of code per your suggestion, but I'm still not seeing the alternate logo. It's very likely that I'm doing it wrong. Here's what I pasted into the page header code injection page: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $(function(){ $(".Header-branding-logo, .Mobile-branding-logo").attr("src","https://static1.squarespace.com/static/5e1e35cbfb18fe3a6420bce5/t/5e90d741d7b18d59e3b5b2fb/1586550593681/17x_logo_transparent_orange.png"); }); </script> Thoughts? Link to comment
tuanphan Posted April 13, 2020 Share Posted April 13, 2020 Remove above and Use this code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $(document).ready(function() { $(".header-title-logo img").attr('src','https://static1.squarespace.com/static/5e1e35cbfb18fe3a6420bce5/t/5e90d741d7b18d59e3b5b2fb/1586550593681/17x_logo_transparent_orange.png'); }); </script> 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!) Link to comment
Guest Posted April 13, 2020 Share Posted April 13, 2020 Hi, thank you so much! That worked great 🙂 Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.