kimkim Posted June 17 Share Posted June 17 Hello! Grateful for any help. I've recently connected my SquareSpace blog to a Podia site. I'm trying to make the two sites work together as seamlessly as possible and I would like to make the logo in my SquareSpace site header link to the homepage which is on Podia. I tried the ideas on this archived conversation but they didn't work for me: Link to comment
paul2009 Posted June 17 Share Posted June 17 17 minutes ago, kimkim said: I would like to make the logo in my SquareSpace site header link to the homepage which is on Podia. I tried the ideas on this archived conversation but they didn't work for me That thread has been archived because it is out of date. If you’re using Squarespace version 7.1, please take a look at my recent post here: sayreambrosio 1 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
kimkim Posted June 17 Author Share Posted June 17 11 hours ago, paul2009 said: That thread has been archived because it is out of date. If you’re using Squarespace version 7.1, please take a look at my recent post here: Thank you, I wasn't able to find any other threads on this topic. I am using 7.1 which I am not seeing mentioned in this more recent thread you shared? I tried the two codes I saw you shared there and neither worked. I'm trying to link to an external site, so maybe I am making a mistake with how I am typing it? Here is how I tried entering the second code with the external link I would like my logo to link to: <script> /* Desktop branding - redirect to another URL */ document.querySelector('a.Header-branding').setAttribute('href', 'https://www.tarotandmeditations.com/'); /* Mobile branding - redirect to another URL */ document.querySelector('a.Mobile-bar-branding').setAttribute('href', 'https://www.tarotandmeditations.com/'); </script> Link to comment
Solution paul2009 Posted June 17 Solution Share Posted June 17 1 hour ago, kimkim said: I am using 7.1 which I am not seeing mentioned in this more recent thread you shared? I have added a 7.1 version to that post. Please take another look. kimkim 1 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
kimkim Posted June 18 Author Share Posted June 18 4 hours ago, paul2009 said: I have added a 7.1 version to that post. Please take another look. Oh my goodness, thank you!!!! I'll paste the code that worked below here in case anyone finds this thread. Can I ask you additionally if there is a code that will make this and the other items in my navigation open in new windows? <script> /* Desktop branding - redirect to another URL */ document.querySelector('.header-display-desktop .header-title-logo a').setAttribute('href', '/home'); /* Mobile branding - redirect to another URL */ document.querySelector('.header-display-mobile .header-title-logo a').setAttribute('href', '/home'); </script> Link to comment
kimkim Posted June 18 Author Share Posted June 18 10 minutes ago, kimkim said: <script> /* Desktop branding - redirect to another URL */ document.querySelector('.header-display-desktop .header-title-logo a').setAttribute('href', '/home'); /* Mobile branding - redirect to another URL */ document.querySelector('.header-display-mobile .header-title-logo a').setAttribute('href', '/home'); </script> I answered the second question myself from an old thread, lol, put this code below in my header injection and now the navigation links are opening in new tabs. <base target="_blank"/> Thank you again, so so much, @paul2009 !! Link to comment
kimkim Posted June 18 Author Share Posted June 18 Hi again @paul2009, I just realized the code you provided is not working on mobile though it works perfectly on desktop. I entered both the desktop and mobile codes just as you share them and added my url in just the same way to each. Any further suggestions appreciated. The site, again, is www.kimberlyessex.com. Thanks! Link to comment
tuanphan Posted June 22 Share Posted June 22 On 6/19/2023 at 2:24 AM, kimkim said: Hi again , I just realized the code you provided is not working on mobile though it works perfectly on desktop. I entered both the desktop and mobile codes just as you share them and added my url in just the same way to each. Any further suggestions appreciated. The site, again, is www.kimberlyessex.com. Thanks! Change this class name .header-display-mobile .header-title-logo a to this .header-mobile-logo a kimkim 1 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
kimkim Posted June 22 Author Share Posted June 22 9 hours ago, tuanphan said: Change this class name .header-display-mobile .header-title-logo a to this .header-mobile-logo a Thank you so much! This worked perfectly: '.header-display-mobile .header-mobile-logo a' tuanphan 1 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