Skip to content
User guide

Code landing pages and AI-written pages

A full landing page you write in HTML, CSS and JavaScript, or that AI writes from your description, with buy buttons and email sign-up.

A code page is a landing page you write entirely yourself, or ask AI to write from a description. It suits anyone who wants a custom design the design editor sections don't cover. Its link works like any landing page: yarbah.com/your-platform/lp/link.

Who can use it?

Available on: Business. The owner, admins and editors (the manage platform permission) can edit it.

How do I create a page?

  1. From My platform, select Open code pages.
  2. Under New page, write the Page name and the Page link (3 to 40 lowercase English letters, numbers and dashes).
  3. Select Create page. The Code editor opens: three tabs (HTML, CSS and JavaScript), a Preview beside them for Desktop and Mobile, and a Refresh button.
  4. Write the code, or ask AI for it (steps below).
  5. Write the Search engine title and Search engine description.
  6. Select Publish.

Every change is saved as a draft automatically, and the status shows Saving…, Saved or Unsaved changes. Visitors see nothing until you select Publish, and every publish is saved as a new version. The list shows each page's state: Published, Draft or Unpublished changes.

How do I create the page with AI?

  1. In Ask AI, describe the page: who it's for, the product, colors and sections.
  2. Select Create the page. You'll see "Writing the page… this can take a minute".
  3. When it's done, check the preview.
  4. Ask for any change in words, like "add an FAQ section" or "use calmer colors", then select Change the page.
  5. Select Publish when you're happy.

Each request uses one message from your monthly AI allowance, and what's left shows under the box. Monthly allowance: Free 20, Pro 300, Business 1500 messages.

Buy buttons

Add data-yarbah-buy="product-link" to any button or link:

<a href="#" data-yarbah-buy="excel-templates">Buy now</a>

It opens the product page on your platform, where the buyer pays as usual. The product link is the last part of its address. In the preview, a note under the button shows which product it opens, or warns you if no published product has that link.

Collecting emails

  1. Add a consent box that is not ticked in advance, which the visitor ticks themselves, like "I agree to receive emails and can unsubscribe at any time".
  2. On submit, call from JavaScript:
yarbah.lead({ email, name, consent })

The email is added to your mailing list. No email is added without consent: true, following the explicit consent rule of the personal data protection law. AI adds this box automatically.

Page files (images, video, fonts)

You don't need to host your page's images on another site. Upload them to Yarbah and use their link:

  1. In the code editor, open Page files.
  2. Select Upload file and choose one or more files.
  3. Select Copy link beside the file and paste it into your code:
<img src="the-link-you-copied" alt="Book cover">
<video src="the-link-you-copied" controls></video>

Supported formats: PNG, JPG, WebP, GIF, MP4, WebM, MP3, PDF, WOFF and WOFF2. Largest file: images 10 MB, video 60 MB, audio and PDF 25 MB, fonts 2 MB. Each platform has 1024 MB of page file space. The link is permanent and works on your Yarbah address and on your own domain. Remove takes a file off the list without breaking pages that use it.

In the design editor, when you choose An outside link for a button or link, an Upload file button sits beside the link field: upload a file (like a PDF) and its link fills the field.

Forms

Forms inside a code page are flexible:

  • To collect emails into your list, use yarbah.lead as above.
  • To send a form to another service (like Google Forms, Formspree or your own system), set its action to an https link, or send the data from JavaScript with fetch to any https link.

Security

Your page runs in an isolated frame, so the code cannot reach your visitors' Yarbah data or sessions. The marketing tools you connected to your platform work on the page as usual.

Limits

  • Up to 150,000 characters of HTML, 80,000 of CSS and 80,000 of JavaScript.
  • A code page counts toward your plan's landing pages.
  • If the platform moves to a plan without custom code, code pages are hidden from visitors until it returns, and nothing is deleted.

Hiding or archiving a page

  • Hide: unpublishes the page and keeps it in your list.
  • Archive: hides the page and removes it from the list.

Messages you may see

  • The link is 3 to 40 lowercase English letters, numbers or dashes.
  • You've reached your plan's landing pages.
  • The code is longer than allowed.
  • You've used this month's messages. Buy a message pack in the app store, or wait for the allowance to renew on the 1st.
  • The service is busy. Try again in a minute.

FAQs about this page

Updated 20 November 2026

Was this article helpful?