shaundesigner Posted November 10 Share Posted November 10 Hi guys im trying to change the Header logo URL with the code below, but its not working. Can anyone help me please? very new to code. <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script>$(document).ready(function () { $(".logo-image [href]").attr("href", "http://www.learnonlinevideo.co.uk"); }); </script> Link to comment
Ziggy Posted November 10 Share Posted November 10 Can you share your website URL? Where are you adding this code? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
shaundesigner Posted November 10 Author Share Posted November 10 www.learnonlinevideo.shop im trying to use it on the header logo show in image Link to comment
shaundesigner Posted November 10 Author Share Posted November 10 im adding the code here - website/website tools/code-injection Link to comment
Solution Web_Solutions Posted November 10 Solution Share Posted November 10 37 minutes ago, shaundesigner said: im adding the code here - website/website tools/code-injection Here is the code. Add these code on Code Injection > Header Section. <script src="https://code.jquery.com/jquery-3.6.3.min.js"></script> <script> $(function(){ $('.header-title-logo a').attr("href", "http://www.learnonlinevideo.co.uk"); }); </script> shaundesigner and Kobir 1 1 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
shaundesigner Posted November 10 Author Share Posted November 10 2 minutes ago, Web_Solutions said: Here is the code. Add these code on Code Injection > Header Section. <script src="https://code.jquery.com/jquery-3.6.3.min.js"></script> <script> $(function(){ $('.header-title-logo a').attr("href", "http://www.learnonlinevideo.co.uk"); }); </script> thank you for that, ive done that but its not directing to the new site?? Link to comment
Web_Solutions Posted November 10 Share Posted November 10 3 minutes ago, shaundesigner said: thank you for that, ive done that but its not directing to the new site?? It is working. You should put the URL here(See the image), there you want to redirect the logo Kobir 1 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
shaundesigner Posted November 10 Author Share Posted November 10 Is it working your end? mine must be cacheing Link to comment
Web_Solutions Posted November 10 Share Posted November 10 1 minute ago, shaundesigner said: Is it working your end? mine must be cacheing See the image. Kobir 1 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
shaundesigner Posted November 10 Author Share Posted November 10 1 minute ago, Web_Solutions said: See the image. hey mate, just tested it in another browser and it working thank you soooo much! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment