jessg Posted December 8, 2014 Share Posted December 8, 2014 Is it possible to move the logo in the Pacific template nav bar to the left? I'm having no luck figuring out how. Thank you SO much guys! Link to comment
squareology Posted January 28, 2015 Share Posted January 28, 2015 First, make sure a logo image is uploaded (this only works if you have a logo image for your site, not a Site Title), then hide the default logo by adding this to the CSS Editor: #logoWrapper {display:none !important;} Then, add your Logo Image as HTML within a Navigation Link. You'll need to get the URL to your logo file -- you can upload this to your site using the File tab of any link, and it'll appear in your /s/ folder here: http://www.yourdomain.com/s/filename.png Add a Navigation link, and use this as your Navigation Title: <img src="http://www.yourdomain.com/s/filename.png"> Replace "http://www.yourdomain.com/s/filename.png" with the actual URL for your logo image, and for the link, choose your homepage. Link to comment
m6d Posted January 30, 2015 Share Posted January 30, 2015 Hello, could you elaborate on this, write the whole code? I can't figure it out. Thanks! Link to comment
lashwood Posted May 6, 2015 Share Posted May 6, 2015 Found an answer that worked here: http://answers.squarespace.com/questions/54629/pacific-left-aligning-logo The code by @mikecorrales is as follows: #header #logoWrapper, #header #siteTitleWrapper {position: relative; left: 10%; -webkit-transform: translate(-50%,0); -moz-transform: translate(-50%,0); -ms-transform: translate(-50%,0); -o-transform: translate(-50%,0); transform: translate(-50%,0); text-align: right;} #header #mainNavWrapper .index {margin: 0 0 0 12px !important; text-align: right;} "Note: The !important tag is important to override the left-margin and right-margin in the #header #mainNavWrapper css because the attributes are written in inline CSS in the HTML code. I hope that helps!" I added it to the Custom CSS area: http://help.squarespace.com/guides/using-the-css-editor It comes out like this: Link to comment
Alan-Squareflair Posted February 2, 2016 Share Posted February 2, 2016 @imagelashwood @jessgThe code that was provided above works, but you'll need to also add the following: I made the logo sit 15% from the left (instead of 10%); Probably still needs work on mobile. — specifically, the MOBILE NAV LINK should be moved to the right (opposite the logo). The template has it on the LEFT by default. You also need to !important the text alignment too. (to override it fur-sure) /* Make logo -go-left- */ #header #logoWrapper, #header #siteTitleWrapper { position: relative; left: 15%; -webkit-transform: translate(-50%,0); -moz-transform: translate(-50%,0); -ms-transform: translate(-50%,0); -o-transform: translate(-50%,0); transform: translate(-50%,0); text-align: right !important; } #header #mainNavWrapper .index { margin: 0 0 0 12px !important; text-align: right !important; } There's a gap added by the template to "punch a hole" for the logo to appear in the middle, and make the navigation flow around it. It's basically just inline margin values added. Set those to ZERO by overriding the margins. #mainNavigation div.collection { margin: 0 !important; } #header #mainNavWrapper { text-align: right !important; } ALMOST THERE... the menu is now hugging too-far to the right. Add a little positioning to the right side of the menu (#header #mainNavWrapper)... #header #mainNavWrapper { text-align: right !important; right: 10%; } Link to comment
Jonas Posted July 9, 2016 Share Posted July 9, 2016 The code for left-align the logo works like a charm. But how do I center the logo on mobile? Link to comment
Jonas Posted July 9, 2016 Share Posted July 9, 2016 The code for left-align the logo works like a charm. But how do I center the logo on mobile? Link to comment
manueldv Posted November 13, 2016 Share Posted November 13, 2016 Hello. I added all the code in order to move the logo to the left and the navigation to the right but I still get the gap where the logo used to be in the middle. How to I sort this out? Best Regards, Manuel del Valle Martínez Ruiz manueldvcreative@gmail.com manueldv.com creative services 🇲🇽 + 52 (55) 6702 5820 Link to comment
cjkulus Posted August 1, 2017 Share Posted August 1, 2017 Hi, did you find out how to center the logo on mobile once left justifying the logo in pacfic? Link to comment
cjkulus Posted August 1, 2017 Share Posted August 1, 2017 Is there a way to center the site title in mobile view after making these changes? Thanks! Link to comment
Vigasan Posted October 13, 2017 Share Posted October 13, 2017 Add this to the bottom of DESIGN > CUSTOM CSS. Change the 830px depending on how many menu items you have. As soon as you see the menu move under the logo, that's the pixel width you should use instead of 830px. @media only screen and (max-width: 830px) { #header #logoWrapper, #header #siteTitleWrapper { left: 50%; } } If an answer I provide helps you, please mark it as the answer so others can easily access it as well. I'm a Squarespace Authorized Trainer, Squarespace Expert, and Circle Member and I've been helping my clients as well as those here in the forum and in various Squarespace groups with custom coding and support for Squarespace websites. I would love to help you in any way I can. Squarespace Plugins | Book Live Help | Squarespace Video Tutorials | Buy Me a Coffee Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.