Install a widget on your website


The approach to display a widget on your blog or website differs based on what kind of blog or website you use:

Install on a Wordpress blog

If you want to show products on a Wordpress blog, we highly recommend using our Wordpress plugin. This allows you to easily add products to your posts or sidebar.

  1. Download and install the Wordpress plugin.
  2. Sign up if you haven't already. It's free!
  3. In the Wordpress admin, add your API key to the ShowSpace settings.
    You can find your API key in your account settings after you signed up.

  4. To add a widget to a post:

    • Edit the post that you want to show a widget in.
    • Add the widget code where you want it to appear:

      Note: You have to replace my_widget with the widget identifier which you find in your widget list.

    To add a widget to the sidebar:

    • Go to Appearance > Widgets in your Wordpress admin area.
    • Drag a "ShowSpace Product Widget" to your sidebar.
    • Enter the widget identifier, which you can find in your widget list.

Install via Javascript (e.g. Blogger, Tumblr, Posterous)

If you have access to your website's Javascript code, you can use Javascript to show your products. This will not slow down your page since the Javascript code is loaded asynchronously.

  1. Sign up if you haven't already. It's free!
  2. Open the code of the page that you want to show the widget in.
  3. Add the following code where you want the widget to appear: (You may have to switch to "HTML" mode, e.g. if you use Blogger)

    Note: You have to replace my_widget with the widget identifier which you find in your widget list.

  4. Add the following code in the layout/theme of your website or blog, preferable between the <head></head> tags:

    Note: You have to replace my_api_key with your API key which you find in your account settings.

Do you have questions, comments, or corrections regarding this article? Let us know!