orneverornow Posted January 3, 2022 Share Posted January 3, 2022 Site URL: https://voegelino.squarespace.com/ Hi there I added a social icon / contact symbol to my navigation and I would like to link it to the contact page instead of opening an email. Is there any custom code I can implement? Website: https://voegelino.squarespace.com/ Password: orneverornow Many thanks Sibylle Link to comment
tuanphan Posted January 4, 2022 Share Posted January 4, 2022 (edited) Add to Settings > Advanced > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('header#header a[href*="mailto"]').attr('href','https://google.com'); $('header#header a[href*="mailto"]').attr('target','_self'); }); </script> Edited January 5, 2022 by tuanphan 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
orneverornow Posted January 4, 2022 Author Share Posted January 4, 2022 16 hours ago, tuanphan said: Add to Settings > Advanced > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('header#header a[href*="mailto"]').attr('href','https://google.com'); }); </script> Great. Thank you so much! Can you please add the code snippet to redirect it on the same page and not to open the link in a new tab? Thanks again. Best, Sibylle Link to comment
tuanphan Posted January 5, 2022 Share Posted January 5, 2022 13 hours ago, orneverornow said: Great. Thank you so much! Can you please add the code snippet to redirect it on the same page and not to open the link in a new tab? Thanks again. Best, Sibylle Updated above code. You can check it again. 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
orneverornow Posted January 9, 2022 Author Share Posted January 9, 2022 On 1/5/2022 at 9:06 AM, tuanphan said: Updated above code. You can check it again. Thank you!!! 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