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


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by foleyatwork

  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.
  11. No, this particular piece of code will not work for ecommerce. You can always post a separate thread asking about that.
  12. The modeling of the database is defined by Squarespace. That means you can't define your own data dictionary, for now at least. And our template language doesn't offer the logic a PHP developer would be used to. Squarespace is really great at giving end-users a seamless experience and giving developers solid building blocks to create templates. It is not an application framework. But if you are interested in using Squarespace as the host and template language, you can use Parse.com and create a JavaScript application. Check out this post for more info on that: http://answers.squarespace.com/questions/171/how-do-i-connect-a-developer-site-to-a-database
  13. Agree, this is not a feature that will likely be built into the platform. There is probably a good use of sound on a webpage, but auto-playing a song on page load is not it.
  14. We also just rolled out something like a "Trash" folder. If you accidentally delete a page, it will still be there for you to recover.
  15. There are two reasons I can think of someone might want to backup their site: 1. To maintain the freedom to switch platforms. You own your data on Squarespace and you can export it at any time. Just go to the Import / Export area of the config and you'll see a button like the one in the top right of this image. This keeps a backup of your data, not the site as a whole. 2. To restore the site if you ever need to. You don't have to worry about backing up your site for this reason. I think a good analogy for non-managed hosts vs. Squarespace is the difference between a desktop computer and something like, say, Google Drive or Dropbox. With the former you are in charge of updates, backups, and other systems tasks. With the latter those things are taken care of for you. Squarespace is a managed service and, like Dropbox or Google Drive, we don't want our customers to have to worry about backing up their sites, updating software, or any other tasks that are better handled by an engineer.
  16. Paste the following code into the footer code injection of your site. <script> Y.use('node', function() { Y.on('domready', function() { Y.all('.form-block').each(function(n) { var d = n.getData('block-json'); d = Y.JSON.parse(d); n.one('form').on('submit',function() { _gaq.push(['_trackEvent', d.formName + ' Submission', 'Form Submission', 'Submit']); }); }); }); }); </script> This is a one step process. Once you paste this code in your footer, each form will be tracked automatically with the form name in Google Analytics. Please post any feedback as a comment here. If there is a bug I will try and fix it. Also, please note this is not supported by Squarespace, even though I am a Squarespace employee. Support won't be able to help you out, but I will do my best to make sure this code works and stays up-do-date.
  17. @alanhouser Or, event better, you can use a protocoless URL. You do that by just leaving out http: altogether. So you'd have //ajax.googleapis.com... Protocoless URLs inherit whichever connection type - secure or insecure - is in the address bar of the browser.
  18. No, the script tag is something entirely different than CSS. Log-in to your site, then click on the eyeball to preview. In the bottom right corner, click on the paintbrush, then in the bottom left corner click on custom CSS. Paste the code I gave you there.
  19. Try adding this to custom CSS. #backToThumbs:after { content: "Close Lightbox"; color: #000; } .collection-type-gallery.full-view #backToThumbs { font-size: 2.0em; top: 15px; left: 152px; color: rgba(0,0,0,0); }
  • Create New...