Jacquelyn Posted December 18, 2020 Share Posted December 18, 2020 Site URL: https://swflgolf.org Is it possible to add an additional logo to the right side of the header? CSS? Similar to the attached screenshot... Link to comment
tuanphan Posted December 22, 2020 Share Posted December 22, 2020 Hi. You need to use JavaScript to do this (a Business Plan or higher) Also, the text on tablet is narrow. Do you want to resize them? 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
artpimpress Posted May 13, 2021 Share Posted May 13, 2021 I have a similar issue. We want to add an icon/logo to the upper left side of the header as well as the text version currently shown on the center. Any workaround for this? Thanks https://olive-dog-ss3h.squarespace.com/ password: thorne Link to comment
tuanphan Posted May 14, 2021 Share Posted May 14, 2021 19 hours ago, artpimpress said: I have a similar issue. We want to add an icon/logo to the upper left side of the header as well as the text version currently shown on the center. Any workaround for this? Thanks https://olive-dog-ss3h.squarespace.com/ password: thorne Add to Settings > Advanced > Code Injection > Header <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('<a href="#" class="tlogo"><img src="https://cdn.pixabay.com/photo/2021/01/09/12/28/tulips-5902188__340.jpg"/></a>').appendTo('[data-nc-container="top-left"]'); }); </script> <style> a.tlogo img { width: 100px; } </style> 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
artpimpress Posted May 16, 2021 Share Posted May 16, 2021 On 5/14/2021 at 7:40 AM, tuanphan said: Add to Settings > Advanced > Code Injection > Header <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('<a href="#" class="tlogo"><img src="https://cdn.pixabay.com/photo/2021/01/09/12/28/tulips-5902188__340.jpg"/></a>').appendTo('[data-nc-container="top-left"]'); }); </script> <style> a.tlogo img { width: 100px; } </style> That worked perfectly. Thank you so much! Link to comment
sarahprime Posted May 16, 2021 Share Posted May 16, 2021 I am trying for the same outcome, with this image: https://static1.squarespace.com/static/6049deef344d611b02167e20/t/60a1073da6ff1a1985429ba4/1621165886383/NATA+Logo.jpeg to sit in the middle of the centre logo and the 'Contact Us' button. Any help would be greatly appreciated. Site: https://polygon-avocado-ffw5.squarespace.com/ Password: ACE##21 Link to comment
sarahprime Posted May 16, 2021 Share Posted May 16, 2021 1 minute ago, sarahprime said: I am trying for the same outcome, with this image: https://static1.squarespace.com/static/6049deef344d611b02167e20/t/60a1073da6ff1a1985429ba4/1621165886383/NATA+Logo.jpeg to sit in the middle of the centre logo and the 'Contact Us' button. Any help would be greatly appreciated. Site: https://polygon-avocado-ffw5.squarespace.com/ Password: ACE##21 Link to comment
tuanphan Posted May 18, 2021 Share Posted May 18, 2021 On 5/16/2021 at 7:03 PM, sarahprime said: It looks like you solved this? Do you still need help? 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
sarahprime Posted July 27, 2021 Share Posted July 27, 2021 Unfortunately not (I just gave up!). I have the company logo positioned, but I need this NATA logo to sit on the RH side of the phone number button. Link to comment
iamdavehart Posted July 27, 2021 Share Posted July 27, 2021 @sarahprime sure, you can do this with just CSS, no javascript required. CSS has a property called content and a pseudo-selector ::after. You have to be careful with this as squarespace might legitimately use it themselves, but if you find the right class name or id selector you can do it easily enough. this should work. change the URL as needed. put this in a code block somewhere on the page. or remove the <style> tags and put it in the site-wide CSS. <style> .header-actions::after { content:''; display:inline-block; width:50px; height:50px; margin-left:20px; background:url("https://images.squarespace-cdn.com/content/v1/600f62fff88eb259bc0f448d/1627162275205-1LJBGHMXHDN93NK9WR3F/square-avatar.png") no-repeat 0 0; background-size:100%; } </style> Lalat, JTHI and sarahprime 3 Dave Hart. Software/Technology Consultant living in London Link to comment
sarahprime Posted July 29, 2021 Share Posted July 29, 2021 You've done it!!!! Thanks so much!! Link to comment
JTHI Posted August 18, 2021 Share Posted August 18, 2021 @iamdavehart Thanks for that, is it possible to add the logo to the top left rather than top right? in screenshot below, on the left the Gilead logo is part of the background image but that becomes a problem with different screen resolutions. The logo on the right is your code, id like to make go on the left and replace the background with a blank one. TYIA! Link to comment
iamdavehart Posted August 18, 2021 Share Posted August 18, 2021 (edited) sure. just need to change the element it's putting the content into, and change it from after to before as its going on the left. if you're on 7.1 it will depend on how you've laid out your header. this should probably work, but if it doesn't then try changing ".header-title-nav-wrapper" to ".header-actions.header-actions--left" <style> .header-title-nav-wrapper::before { content:''; display:inline-block; width:50px; height:50px; margin-right:20px; background:url("https://images.squarespace-cdn.com/content/v1/600f62fff88eb259bc0f448d/1627162275205-1LJBGHMXHDN93NK9WR3F/square-avatar.png") no-repeat 0 0; background-size:100%; } </style> change width and height and background url accordingly. Edited August 18, 2021 by iamdavehart JTHI and aleisha 2 Dave Hart. Software/Technology Consultant living in London Link to comment
JTHI Posted August 19, 2021 Share Posted August 19, 2021 @iamdavehart amazing thank you Link to comment
louis1996 Posted October 21, 2021 Share Posted October 21, 2021 On 8/18/2021 at 4:38 PM, iamdavehart said: sure. just need to change the element it's putting the content into, and change it from after to before as its going on the left. if you're on 7.1 it will depend on how you've laid out your header. this should probably work, but if it doesn't then try changing ".header-title-nav-wrapper" to ".header-actions.header-actions--left" <style> .header-title-nav-wrapper::before { content:''; display:inline-block; width:50px; height:50px; margin-right:20px; background:url("https://images.squarespace-cdn.com/content/v1/600f62fff88eb259bc0f448d/1627162275205-1LJBGHMXHDN93NK9WR3F/square-avatar.png") no-repeat 0 0; background-size:100%; } </style> change width and height and background url accordingly. @iamdavehart For some reason this didn't work for me, any idea how to get a small extra logo on the left hand side of the header, running in line with the search button? Website is: warners-stores.co.uk Thanks! Link to comment
tuanphan Posted October 22, 2021 Share Posted October 22, 2021 23 hours ago, louis1996 said: @iamdavehart For some reason this didn't work for me, any idea how to get a small extra logo on the left hand side of the header, running in line with the search button? Website is: warners-stores.co.uk Thanks! Add it here? Logo is clickable or non-clickable? 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
louis1996 Posted October 25, 2021 Share Posted October 25, 2021 On 10/22/2021 at 3:05 PM, tuanphan said: Add it here? Logo is clickable or non-clickable? @tuanphan Yes exactly there, and non clickable please Link to comment
Vncent Posted October 26, 2021 Share Posted October 26, 2021 Hi! I'm also trying to use the code @iamdavehart posted, but want to position my secondary logo in the center of the header while keeping my main logo on the left. What should I change? Thanks! Link to comment
tuanphan Posted October 29, 2021 Share Posted October 29, 2021 On 10/27/2021 at 12:07 AM, Vncent said: Hi! I'm also trying to use the code @iamdavehart posted, but want to position my secondary logo in the center of the header while keeping my main logo on the left. What should I change? Thanks! Hi. What is site url? We can check easier 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
louis1996 Posted November 2, 2021 Share Posted November 2, 2021 On 10/22/2021 at 3:05 PM, tuanphan said: Add it here? Logo is clickable or non-clickable? @tuanphan Are you able to help with this? thank you! Link to comment
tuanphan Posted November 6, 2021 Share Posted November 6, 2021 On 11/2/2021 at 10:43 PM, louis1996 said: @tuanphan Are you able to help with this? thank you! Add to Last Line in Code Injection > Footer <script> $(document).ready(function() { $('<a href="https://beaverhero.com" class="logo1"><img src="https://content.invisioncic.com/p289038/monthly_2021_11/GEF_30Years_Logo_ARTTransparent-01.thumb.png.2b8888731ad6854ebf20eedc7da6ee33.png"/></a>').insertBefore('.header-title-nav-wrapper'); }); </script> <style> a.logo1 img { width: 100px; } </style> Replace beaverhero, image url with new link/image you want. 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
louis1996 Posted November 8, 2021 Share Posted November 8, 2021 On 11/6/2021 at 2:23 AM, tuanphan said: Add to Last Line in Code Injection > Footer <script> $(document).ready(function() { $('<a href="https://beaverhero.com" class="logo1"><img src="https://content.invisioncic.com/p289038/monthly_2021_11/GEF_30Years_Logo_ARTTransparent-01.thumb.png.2b8888731ad6854ebf20eedc7da6ee33.png"/></a>').insertBefore('.header-title-nav-wrapper'); }); </script> <style> a.logo1 img { width: 100px; } </style> Replace beaverhero, image url with new link/image you want. @tuanphan That worked great, is there a way to make it only apply to desktop? As on mobile it is throwing the navigation button off the screen. Thank you! Link to comment
Potter Posted November 8, 2021 Share Posted November 8, 2021 I am trying to add another logo to the middle of the header, see image. How would I go about this? Link to comment
tuanphan Posted November 10, 2021 Share Posted November 10, 2021 On 11/8/2021 at 4:53 PM, louis1996 said: @tuanphan That worked great, is there a way to make it only apply to desktop? As on mobile it is throwing the navigation button off the screen. Thank you! Use this new code <script> $(document).ready(function() { $('<a href="https://beaverhero.com" class="logo1"><img src="https://content.invisioncic.com/p289038/monthly_2021_11/GEF_30Years_Logo_ARTTransparent-01.thumb.png.2b8888731ad6854ebf20eedc7da6ee33.png"/></a>').insertBefore('.header-display-desktop .header-title-nav-wrapper'); }); </script> <style> a.logo1 img { width: 100px; } </style> 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
tuanphan Posted November 10, 2021 Share Posted November 10, 2021 On 11/8/2021 at 11:15 PM, Potter said: I am trying to add another logo to the middle of the header, see image. How would I go about this? What is your site url? 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment