licnyguy Posted November 11, 2013 Share Posted November 11, 2013 Hello,I am trying to find the correct CSS code to add to a given page to adjust the banner height on my site which uses the template, Five. In the default template, the banner height is universal across all pages, so my goal is to have the banner taller on the homepage and shorter on all other pages. Any help with this adjustment would be greatly appreciated. Thanks very much!Regards,LICNYGUY Link to comment
tonysquarespace Posted November 20, 2013 Share Posted November 20, 2013 I was able to do this. Find the collection number of the page where you want the banner image to be different. You can do this by using the Developer Tools (right click > Inspect Element) in Chrome or Safari or using Firebug. Then in the Custom CSS Editor paste this: #collection-5514f7b4e4b00e32840e1ed4 #banner-area-wrapper { height: 100px } You can change the height to whatever height you need. Link to comment
licnyguy Posted November 21, 2013 Author Share Posted November 21, 2013 Hey Tony! Thanks a lot for the assist. Just to double check, could you take a look at the screen shot below to see if I have the collection# and CSS correct? Thanks again! J- Link to comment
tonysquarespace Posted November 21, 2013 Share Posted November 21, 2013 Yes, that should be it. Hope it works! Link to comment
seangabriel Posted October 10, 2014 Share Posted October 10, 2014 I am trying to adjust the banners on different pages of my site to be different heights as well, but I’m using the Adirondack template. Is it possible that this same code should work on another template? I ask, because I’m trying and it’s not working. Or, is it likely that #banner-area-wrapper is called something totally different on Adirondack? Also, that code gets injected in the CSS box for the whole site, not on an individual page’s “page header code injection” box, correct? I’ve been trying so solve this problem on my site for looong time, and I feel like I’m so close, thank you. Link to comment
EmBee Posted February 26, 2016 Share Posted February 26, 2016 You can also change this on a per page basis by adding the code (You can change the height in pixels as is needed) in the page settings > Header Code Injection area like so: <style> #banner-area-wrapper { height: 100px } </style> Link to comment
Guest Posted March 29, 2016 Share Posted March 29, 2016 Hi Guys, Am I the only one experiencing an issue with the text overlay in the banner on the Five template if I resize the banner (screenshot attached) - The text is completely off center then Any ideas? Link to comment
Guest Posted March 29, 2016 Share Posted March 29, 2016 Hi Guys, Am I the only one experiencing an issue with the text overlay in the banner on the Five template if I resize the banner (screenshot attached) - The text is completely off center then Any ideas? Link to comment
kindandbrave Posted October 19, 2016 Share Posted October 19, 2016 Also trying to do this with the Pacific template. Anyone figure it out? Link to comment
mrb317 Posted January 5, 2017 Share Posted January 5, 2017 After using the above code (Embee) it keeps my text in the same area but the size was adjusted perfectly. Any idea how to fix?! Link to comment
mrb317 Posted January 5, 2017 Share Posted January 5, 2017 Nevermind I figured it out! haha Thank you! Link to comment
luisaa27 Posted January 8, 2017 Share Posted January 8, 2017 Hey I'm running into the same issue as you, how did you figure out the text bit? Link to comment
Zetty Posted March 22, 2017 Share Posted March 22, 2017 Doesn't work for me neither in CSS sheet with the page ID, neither in ADVANCED for an individual page. It's beyond me why wouldn't Squarespace implement such a basic thing in settings (as well as many other basic design tuning possibilities).. Unfortunately I am tied to this rigid platform. Link to comment
Zetty Posted March 22, 2017 Share Posted March 22, 2017 OK, actually it did work with this code: collection-58c2f5709de4bbceb9263de1 .view-list .banner-thumbnail-wrapper, .collection-type-page .banner-thumbnail-wrapper, .collection-type-index .banner-thumbnail-wrapper {max-height: 1px;} However, it only ADDS to the banner, not takes it away. It's still huge and I cannot get it any more narrow than it already was. Besides, it stopped working again on a reload. Link to comment
fishbulbgabe Posted March 27, 2017 Share Posted March 27, 2017 I'd also love to know how to fix the text's vertical alignment in the banner. I'm not having any luck. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.