This repository contains examples for embedding items from Square Market into your own website.
You can read more about embedding and sharing items in our Help Center.
You can find embed code on item pages throughout Square Market. Any item that is for sale and has an image can be embedded. Start by clicking the embed icon alongside our icons for sharing on Twitter, Facebook, etc:
The code shown can be copied and pasted into the HTML for your page:
Check the preview to see what the finished item will look like in your site:
Browse the code in this repository for examples of different embedding techniques, or view the source for our examples live in our github pages.
Our favorite sample so far uses the Masonry library to create a crisp, clean layout for a large number of embedded items.
We welcome your bug reports in the issues section of this repository.
We also welcome new and improved examples. If you have an example that you'd like to share with us:
- Fork this repository
- Create your feature branch (
git checkout -b my-new-example
) - Commit your changes (
git commit -am 'Add an example'
) - Push to the branch (
git push origin my-new-example
) - Create new Pull Request
We ask that contributors to the square-market-embeds
repository first sign our
Individual Contributor License Agreement (CLA). It's a short form that
covers our bases and makes sure you're eligible to contribute.
The samples here are made available to you under the Apache 2.0 license.
The Masonry plug-in is used unmodified under the MIT license.