abucknam Posted April 18, 2016 Share Posted April 18, 2016 @Octopus, the above CSS and js works like a charm. I'd also add changing the max-width also helps to control the image size, in addition to the height. Thanks for posting. Link to comment
carlaolson Posted July 12, 2016 Share Posted July 12, 2016 This is great @octopus - it worked perfectly, thank you! Link to comment
njensen Posted December 5, 2016 Share Posted December 5, 2016 (edited) @deanseguin @ana@top5fashion.com If you want to make it clickable, add this to your site footer injection: Replace "YOUR URL HERE" with your URL <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <script> $('#mobile-navigation-title').wrap('<a href="YOUR URL HERE" />'); </script> I hope this helps! :) Edited December 5, 2016 by njensen Initial Revision Hettie 1 >Hello, I'm Nicole. > I'm new to Squarespace, still finding my way and I hope I can help other users along the way. Link to comment
elliettej Posted December 4, 2017 Share Posted December 4, 2017 i was able to get this code to work by updating the jQuery version. Settings > Advanced > Code Injection > Footerand entered the following code: <script> $('#mobile-navigation-title').wrap('<a href="https://www.mytaxband.com/" />'); and i got the jQuery version from this Google Hosted Library page:https://developers.google.com/speed/libraries/ Link to comment
Guest Posted January 17, 2018 Share Posted January 17, 2018 I try the code but it doesn't work for me. Does anyone have another code? Thank you :) Link to comment
whizclick Posted February 4, 2018 Share Posted February 4, 2018 Thanks @squareology :-) Is there a way in your code to use a larger logo/image and specify a smaller height/width to fit so that the logo doesn't look blurry? Link to comment
SquareSpace_Assassin Posted May 18, 2018 Share Posted May 18, 2018 use background-size property for adjusting logo. Link to comment
SquareSpace_Assassin Posted May 18, 2018 Share Posted May 18, 2018 The correct seems to work fine, there must be problem in the way you're injecting the code in the template sections Link to comment
Guest Posted November 22, 2019 Share Posted November 22, 2019 (edited) I got my mobile nav logo to show up like this, and it still acts as a link to the front page. You just have to add your logo image url(). By adjusting font-size you can adjust image size and bu adjusting label margins you can adjust hamburger menu position. Usage of PNG images with transparent background is suggested of course. /*Add logo to display in mobile*/ #mobile-navigation-title a { color: transparent; background-image: url("YOUR_IMAGE_URL_HERE"); background-size: contain; background-position: center; background-repeat: no-repeat; font-size: 2.5em; } /*Adjust mobile hamburgernav position*/ #mobile-navigation-label { margin-top: 1em; } Edited November 22, 2019 by osholopa Link to comment
VanEsch Posted June 9, 2020 Share Posted June 9, 2020 (edited) Logo only displays when Banner Content: Site Title Logo Tagline is selected. Otherwise, the site title displays. Design - Site Styles - Header - "Banner Content:" Edited June 9, 2020 by VanEsch Link to comment
vjtk Posted July 9, 2021 Share Posted July 9, 2021 On 11/22/2019 at 5:34 AM, osholopa said: I got my mobile nav logo to show up like this, and it still acts as a link to the front page. You just have to add your logo image url(). By adjusting font-size you can adjust image size and bu adjusting label margins you can adjust hamburger menu position. Usage of PNG images with transparent background is suggested of course. /*Add logo to display in mobile*/ #mobile-navigation-title a { color: transparent; background-image: url("YOUR_IMAGE_URL_HERE"); background-size: contain; background-position: center; background-repeat: no-repeat; font-size: 2.5em; } /*Adjust mobile hamburgernav position*/ #mobile-navigation-label { margin-top: 1em; } I got this to work for me as well, however I'd like to know the code to get the hamburger menu on the right vs. left side of header. Link to comment
tuanphan Posted July 10, 2021 Share Posted July 10, 2021 On 7/9/2021 at 12:31 PM, vjtk said: I got this to work for me as well, however I'd like to know the code to get the hamburger menu on the right vs. left side of header. Can you share link to your site? We can take a look 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
vjtk Posted July 26, 2021 Share Posted July 26, 2021 Quote Can you share link to your site? We can take a look sure, https://thermal-res.squarespace.com/ pass: 0000 Link to comment
tuanphan Posted July 27, 2021 Share Posted July 27, 2021 On 7/26/2021 at 8:40 AM, vjtk said: sure, https://thermal-res.squarespace.com/ pass: 0000 you mean align nav to right, closer social icons? 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
vjtk Posted July 27, 2021 Share Posted July 27, 2021 1 hour ago, tuanphan said: you mean align nav to right, closer social icons? No, in place of the social icons. I would move those to the left where the logo currently is. Link to comment
vjtk Posted July 27, 2021 Share Posted July 27, 2021 On 7/20/2015 at 11:39 AM, squareology said: Using @octopus' code with a couple tweaks: #mobile-navigation-title { background: url("XXX") no-repeat center; text-indent: 100%; height:100px; } #mobile-navigation #mobile-navigation-label { background:transparent; color:black; } You can adjust the mobile navigation button, it was showing up as a black square with grey lines but this way can be a transparent square with black lines. Add it to your Custom CSS Editor. You can upload files directly to the Custom CSS editor for use in the background URL, just replace XXX with the URL of the image file. I also found that the height didn't expand with the image, so the height needs to be set manually. Use Device View to check how it looks. Not sure what you mean about the menu being a black square and the height issue, its transparent with white lines on this end using both device view and an actual device (iphone) to check. I replaced the code I had with what you supplied, but the graphic was too large and there was text in the header (although I couldn't see it all on iphone as the logo was so big). 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