foleyatwork
-
Posts
1,269 -
Joined
-
Last visited
-
Days Won
4
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Posts posted by foleyatwork
-
-
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-
-
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?
-
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.
-
Try this in custom CSS.
img { pointer-events: none; }
-
No, this particular piece of code will not work for ecommerce. You can always post a separate thread asking about that.
-
-
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.
-
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.
-
Can you add a link to your site?
-
Can you add a link to your site?
-
Forget the video block. Just drop the code into a code block. That's what I did and it worked.
-
Autoplays for me. how are you adding the code?
-
Disclaimer: I almost always think autostarting videos is a terrible idea. Just my personal opinion. Please do good, not evil, with this answer.
With YouTube you can just add ?autoplay=1 to the end of the iframe URL. For instance:
<iframe width="420" height="315" src="http://www.youtube.com/embed/4KRZQQ_eICo?autoplay=1" frameborder="0" allowfullscreen></iframe>
-
There are a few different ways to do this. By far the easiest is to use one of Facebook's social plugins:
http://developers.facebook.com/docs/plugins/ (Like Box does what you're looking for, I think.)
Those will generate code for you and all you have to do is paste it into the Code Block in Squarespace.
How can I track form submissions in Google Analytics?
in Customize with code
Posted
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.