Melibau Posted June 11 Posted June 11 I would like to remove the target="_blank" so the social links open in the same tab instead of a new tab. Does anyone know what I can do? I tried Squarespace helpdesk, but they would not help. TIA!
Solution Lesum Posted June 11 Solution Posted June 11 @Melibau Try adding this code snippet under Website > Pages > Website Tools > Code Injection > Header: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).ready(function() { $('.header-actions-action.header-actions-action--social a').attr('target','_self'); }); </script> Let me know how it goes. Thanks! If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment