laura5 Posted March 17, 2023 Share Posted March 17, 2023 It drives me crazy that Squarespace's default is to have the "Open in a new window" feature toggled off for text links and to not let us change the default for ourselves. Anybody have a bit of code to share that could help out? Thank you! Link to comment
derricksrandomviews Posted March 18, 2023 Share Posted March 18, 2023 There is blanket code but unfortunately, it affects EVERY link, not just text links. That means your Nav links open in a new window, as well as images, everything. There is a bit of code you can add to the links you want to open in a new window but what is the point of that when you can just toggle it? Link to comment
creedon Posted March 18, 2023 Share Posted March 18, 2023 (edited) Please see Text Block Links Open in New Window. This code targets text block links only and requires the business plan or above. Let us know how it goes. Edited March 19, 2023 by creedon tuanphan 1 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
derricksrandomviews Posted March 19, 2023 Share Posted March 19, 2023 13 hours ago, creedon said: Please see Text Block Links Open in New Window. This code targets text block links only. Let us know how it goes. Good code, but does require a business or commerce billing plan. creedon 1 Link to comment
laura5 Posted March 19, 2023 Author Share Posted March 19, 2023 Thank you thank you!!! Testing now. creedon 1 Link to comment
laura5 Posted March 20, 2023 Author Share Posted March 20, 2023 On 3/18/2023 at 9:13 AM, derricksrandomviews said: There is blanket code but unfortunately, it affects EVERY link, not just text links. That means your Nav links open in a new window, as well as images, everything. There is a bit of code you can add to the links you want to open in a new window but what is the point of that when you can just toggle it? Thanks. And it's more that I wish the default in Squarespace is to have text links open in a new window and you had to toggle on the feature to open in the site. Most of the sites I design use buttons for clicking around within the site and text links for linking out to other sites. Link to comment
derricksrandomviews Posted March 20, 2023 Share Posted March 20, 2023 (edited) I agree, it seems to be logical for the toggle to be the opposite of what it is now. I always toggle open in a new window so when folks do click a link they can get right back to the page on my site where they were if they want to by clicking the window browser tab. Edited March 20, 2023 by derricksrandomviews 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