Discover Our Referral Program

Integrate the form or app into any website

Have a custom-built website — or any site that lets you edit its HTML/JavaScript? You can add your Trendful form or app yourself in a couple of minutes. It's the exact same lightweight script that powers our Shopify, Wix, and WordPress integrations — no specific platform required, just a page that runs JavaScript.

1. Add the script snippet

Add this snippet just before the closing </body> tag:

  • To show it everywhere on your site, add it to your site's shared layout/template (the file that wraps every page), right before </body>.
  • To show it on one specific page only, add it before </body> on that page instead.
<script trendful src="https://YOUR-CUSTOM-LINK.trendful.com/init.js"></script>

Your custom link: replace YOUR-CUSTOM-LINK with the unique link for your Trendful form or app. Don't have it yet? Contact us at support@trendful.com to get it.

2. Open it as a pop-up (modal)

Add the class trendful-button (use the class for one or more elements) or the id trendful-button (for a single element) to any button or link. Clicking it opens Trendful in an overlay on your page.

<!-- a button -->
<button class="trendful-button">Sell your item</button>

<!-- or a link — leave off target so it opens in place instead of a new tab -->
<a href="#" id="trendful-button">Sell your item</a>

3. Or embed it inline (in the page)

Prefer Trendful to sit directly in the page rather than open as an overlay? Add a container with the data-trendful-inline attribute, set to which one you're embedding — "app" for the resale app or "form" for the sell form. It renders in place, no button needed:

<!-- resale app -->
<div data-trendful-inline="app"></div>

<!-- or the sell form -->
<div data-trendful-inline="form"></div>

To set a custom height (defaults to 700px), add data-trendful-inline-height:

<div data-trendful-inline="app" data-trendful-inline-height="800px"></div>

The inline embed and the pop-up button can both be used on the same page — they work independently.

If you have any questions, contact us at support@trendful.com.