The Auction Nudge Code Snippet
When you enter options into one of the Auction Nudge tools, you are provided with a code snippet to add to your site.
The snippet takes the options you have entered (such as your eBay username and display options) and creates a unique feed, which will always stay up to date.
For example, the Your eBay Listings snippet looks like this:
The snippet comprises of two HTML elements:
<script>element which outputs the content for the feed
<div>element which determines where the content appears on your page
Once added to a page, the above snippet will output the following content:
This is all that needs to be added to your site in order to display your eBay listings. Once installed, the tool will automatically update to display your active information, so this only needs to be done once.
Installing Your Snippet
Installing your code snippet consists of copying and pasting it into a web page.
Obtaining Your Code Snippet
If you do not yet have your code snippet, you can quickly generate one just by entering your eBay username.
- Enter your eBay username and customize your feed
- Copy all of the code from the Your Code Snippet box
- Using your text editor of choice, open the file for your site where you want to install Auction Nudge
- Paste the copied code into the file where you want the eBay listings to appear (somewhere between the
- Save your modified web page
- Upload the modified web page to your server
Watch the Video
The following video covers how to add the Auction Nudge code snippet to your site:
Customizing Auction Nudge
For details on how to customize the look and behaviour of Auction Nudge please see the customize section.
Using Auction Nudge with WordPress
As well as being able to manually add your code snippet to your self-hosted WordPress site, there is also an Auction Nudge WordPress plugin.
The plugin allows you to set your options directly from within the WordPress admin, so you don't ever need to touch the code snippet.
WordPress.com Hosted Sites
Unfortunately, Auction Nudge can not be installed on sites hosted on WordPress.com. This is because embedding dynamic content is not allowed, with a few exceptions (like embedding YouTube videos).
Installing Auction Nudge on Your Website or CMS
There are a lot of different ways to create and host a website, so installing Auction Nudge on your site may be different.
Auction Nudge and HTTPS/SSL
All tools support being served over HTTPS and all content added by the tool will also be served over HTTPS.
The code snippet which embeds Auction Nudge on your site automatically loads a HTTPS version of the tool if your page is being served over HTTPS. Some browsers block content loaded via HTTP on pages served via HTTPS, so this ensures the Auction Nudge snippet uses the correct protocol to match your site.