michael-b Posted September 13, 2021 Share Posted September 13, 2021 Site URL: http://www.bermanpictures.com I designed my photography website so that my email and phone contact links are from custom code. The code worked before, but I just discovered that now it doesn't. I would rather not use Squarespace's email link option through Pages-->Primary Navigation because the placement, color, and type size do not work in my design. So I added it to the Tagline of the Site Title. Pasting the code I am currently using below. Does anyone know if there's a way to alter this code so that the links will again work? The website is bermanpictures.com. You'll see I inserted multiple 's to make the spacing that looks right. <a href="mailto:mb@bermanpictures.com">email</a> <a href="tel:917-415-1766">+1 917 415 1766</a> I think that's correct, but I am not at all knowledgeable about this stuff. Thanks for any help! Michel Link to comment
michael-b Posted September 13, 2021 Author Share Posted September 13, 2021 Also from me Michael - I just changed it so that it says the email address, so the code is slightly different, but it still does not work as a link - which is my hope. Link to comment
tuanphan Posted September 16, 2021 Share Posted September 16, 2021 Hi, I see email in header here. What is problem now? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
zbombadil Posted November 19, 2021 Share Posted November 19, 2021 I'm having the exact same problem, Michael. Had several custom code links in the Tag Line part of Logo & Title. They've worked since I first created the page. Now they don't. Squarespace support explained that updates to the platform can cause custom code to break or behave differently. Super frustrating. Here's the code that used to work for my site in the Tag Line: e: <a href="mailto:zbombadil@gmail.com?subject=Let's disco">zbombadil@gmail.com</a> | follow me on <a href="https://workingnotworking.com/zacspectorlikesyou" target="_blank">workingnotworking</a>. Wouid love to figure out how to alter the code to make it work. If anyone has a solution, would be wildly appreciated. .Zac. Link to comment
paul2009 Posted November 19, 2021 Share Posted November 19, 2021 6 hours ago, zbombadil said: I'm having the exact same problem To provide specific help, we need to be able to view the site. It's really helpful if you can provide a link. However, Squarespace has been steadily improving site security, and this involves blocking code (such as the HTML you showed above) from text entry boxes, so it is likely that this is now being blocked. The alternative way to achieve this is to write some JavaScript that will add the link to the site title after the page has loaded, but (for the benefit of anyone reading this) it is only possible on a Business Plan or above. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
zbombadil Posted November 19, 2021 Share Posted November 19, 2021 My site is zacspectorlikesyou.com Many, many thanks, Paul. Link to comment
tuanphan Posted November 21, 2021 Share Posted November 21, 2021 On 11/19/2021 at 10:27 PM, zbombadil said: My site is zacspectorlikesyou.com Many, many thanks, Paul. Add to Settings > Advanced > Code Injection > Footer <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { $('<div class="logo-subtitle tagline2">.writer / content creator / creative director | p: 303.946.3894 | <a href="mailto:zbombadil@gmail.com?subject=Lets disco">zbombadil@gmail.com</a> | follow me on <a href="https://workingnotworking.com/zacspectorlikesyou" target="_blank">workingnotworking</a></div>').insertAfter('h1.logo'); }); </script> <style> .logo-subtitle:not(.tagline2) { display: none; } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (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