Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

foleyatwork

Member
  • Content Count

    1,269
  • Joined

  • Last visited

  • Days Won

    4
  1. There may be other ways. Can you share a link and let me know which block you want to target?
  2. You got a link where this is occurring?
  3. This javascript snippet should make all the hero images and galleries in Bedford take up the full window height. Just drop this in the footer code injection. Can't stress that footer part enough, there will be JavaScript errors if you put this in the header. <script> (function () { /* To make this work on the homepage only, set this variable to true. Then uncomment the .homepage selector in the CSS below. */ var homepageOnly = false; if (homepageOnly === true && !Y.one('body.homepage')) { return; } else { var elem = Y.one('.banner-thumbnail-wrapper'); var windowHeight = window.innerHeight; if (elem && elem.getComputedStyle('display') != 'none') { var content = Y.one('.desc-wrapper') || Y.one('.blog-item-wrapper'); var padding = (windowHeight - content.get('clientHeight')) / 2; elem.setStyles({ 'paddingTop' : padding, 'paddingBottom' : padding }); } else { var wrapper = Y.one('#promotedGalleryWrapper .sqs-gallery-container'); var gallery = Y.one('.sqs-featured-posts-gallery') || Y.one('#promotedGalleryWrapper .sqs-gallery'); if (gallery) { gallery.setAttribute('style', 'height:' + windowHeight + 'px !important'); } if (wrapper) { wrapper.setAttribute('style', 'height:' + windowHeight + 'px !important'); } } } })(); </script> <style> /*body.homepage*/ .sqs-featured-posts-gallery .gallery-wrapper, /*body.homepage*/ .sqs-featured-posts-gallery .slides-controls, /*body.homepage*/ .sqs-featured-posts-gallery .slides, /*body.homepage*/ .sqs-featured-posts-gallery .gallery-wrapper .posts, /*body.homepage*/ .sqs-featured-posts-gallery .gallery-wrapper .posts .post { height: 100% !important; } </style> Update: Added some CSS to make the featured blog galleries work. Update 2: Added an option to make this work on the homepage only.
  4. Almost all Squarespace sites have easy to use style options that allow you to change the background color. And you can see many real-world examples on every template page on the site: http://www.squarespace.com/templates/
  5. Add this to custom CSS. .site-title img { max-height: 100px; max-width: 400px; } Then play around with either (or both) of those numbers until you get the desired size.
  6. Hey Guys, This answer was submitted before you were allowed to submit HTML into the post-submit field. I'm going to take another look at this next week and figure out the best way to do it now.
  7. My guess is you added it to code injection. Login, click on the wrench, then find the code injection tab and delete the code. This is supposed to go in custom CSS. Instructions here: http://help.squarespace.com/customer/portal/articles/438114-making-style-changes#css-editor--optional-
  8. It might be because you're using the lightbox. The script I developer was on a form without the lightbox. Not really sure. You got a link?
  9. You can password protect a page and give the password to the client. That's probably the only way right now.
  10. You're right, it's not supported in IE. Technically speaking, there is absolutely no possible way to prevent people from stealing the photos posted on your site. The best you can do is make it inconvenient for them. This isn't a Squarespace-specific problem, it's just how the Internet works. The technique I posted doesn't work on gallery images because you need pointer events to increment the slides. A watermark is the only surefire way to protect photos. Kind of lame, but it's effective. If I have some more time I'll try and come up with a more robust solution.
×
×
  • Create New...