aliciaWPP Posted July 13, 2021 Share Posted July 13, 2021 Site URL: https://elk-carnation-c43w.squarespace.com/ I am creating a "French' section on my website and would like the header button to switch to "English" once someone clicks on French. Allowing them to go back to the main website. Is there a code injection I can use on the French page to change the button on that page only? Link to comment
tuanphan Posted July 14, 2021 Share Posted July 14, 2021 17 hours ago, aliciaWPP said: Site URL: https://elk-carnation-c43w.squarespace.com/ I am creating a "French' section on my website and would like the header button to switch to "English" once someone clicks on French. Allowing them to go back to the main website. Is there a code injection I can use on the French page to change the button on that page only? Hi. What is access password? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
tuanphan Posted July 15, 2021 Share Posted July 15, 2021 19 hours ago, aliciaWPP said: JourFor2021 Add this code to le-forum-des-journalistes-canadiens page header code injection <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('header#header a.btn').attr('href','/'); $("header#header a.btn").html(function() { return $(this).html().replace("Français", "English"); }); </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
aliciaWPP Posted July 15, 2021 Author Share Posted July 15, 2021 Thanks. Unfortunately that didn't work. Link to comment
tuanphan Posted July 16, 2021 Share Posted July 16, 2021 16 hours ago, aliciaWPP said: Thanks. Unfortunately that didn't work. Can you add & keep the code in page header, we can check it again easier? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
tuanphan Posted July 20, 2021 Share Posted July 20, 2021 Remove above & add this new code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('header#header a.btn').attr('href','/'); $(".product-price").html(function() { return $(this).html().replace("Français", "English"); }); }); </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
aliciaWPP Posted July 20, 2021 Author Share Posted July 20, 2021 Thanks. It's still not working. I also need it to direct back to the English website so it will need a URL. I think I'll try to find another option. Link to comment
creedon Posted July 21, 2021 Share Posted July 21, 2021 It appears to be working to me. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. 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