40% off month one for the first 200 websitesSee pricing

Your custom code, as sections your team can edit, move and reuse

Your developer built sections in code that nobody else can touch. How to hand them to your team to change, move and reuse, and where code still has to change.

Published 6 min read
Colored code on a dark screen, close up
Photo: Gabriel Heinzer on Unsplash

Your developer built parts of your site in code: a pricing table, a strip of customer quotes, a sign-up form. They look right and they work. Then a teammate wants the quotes on a new landing page too, or wants to hide the form for a week, or needs a tag manager on every page for a campaign. Each of those is a request to the one person who can change the code, and it waits in line behind their real work.

This post is for the developer who keeps getting those requests, and the teammate who keeps sending them. It shows how to turn that code into sections your team can change, move and reuse.

Why custom code is out of reach

A CMS edits what it stores: fields, entries and blocks someone defined in it. Your sections live in code files, so a CMS knows nothing about them until a developer describes each one to it. That means a block definition for each section, one field for each piece of text or image, and code that reads those fields. Every new section the developer writes needs the same work again, or it stays out of reach.

How to hand it over without Vunora

Three ways work, and each has a cost.

  1. Move the words into a data file. Your developer changes the section so its text comes from a JSON or Markdown file in the repo. A teammate edits that file on GitHub. In GitHub's words, "You can edit files directly on GitHub in any of your repositories using the file editor." Someone without write access still can: GitHub forks the repo and opens a pull request for them. This covers the words. Moving the section to another page or hiding it is still a code change.
  2. Model each section in a headless CMS. Your developer defines each section as a block, maps every field, and connects the site's code to read it. Your team then places blocks on pages. This is the rebuild most CMS moves involve, and it repeats for every new section. How a move to Vunora looks from the developer's side covers that cost.
  3. Snippets in the layout file. A tag manager or a chat widget goes into the layout file once, by hand. Each new snippet, and each removal, is another code change and another deploy.

How Vunora handles it

Vunora reads your site's code when you import it and works out which sections each page draws. Your team then works on the page they see, and every change goes back to your repo. The steps follow.

1. See which sections come from your code

Open a page and choose the Sections tab. It lists the page's sections by name. A section your code draws carries the badge "From your code". The live sections page shows what they can do. A section that shows on every page, such as the header or the footer, carries "Site-wide" and the line "On every page. Changes here show everywhere."

Sections

Home

  • HeaderSite-wide
  • Hero
  • A section your code drawsQuote stripFrom your code
  • Pricing tableFrom your code
  • FooterSite-wide

2. Change the words in place

The page shows in your site's own design, with the line "Draft. Click any text to edit it." Click a quote in the strip and type the new one. A change to a site-wide section shows on every page that uses it, which is what you want from a footer.

yoursite.com
  • Header
  • Click the quote and typeQuote stripFrom your code"Our team ships pages the same day now."
  • Footer

3. Move a section or hide it

Each row in the Sections tab has a menu: Edit words, Rename, Move up, Move down, Hide and Duplicate. Drag a row to reorder. A hidden section reads "Hidden. Visitors do not see it." Duplicate is off for a section your code draws, and the menu says why: "Your site's code draws this section. You can change its words, move it or hide it. To have a second copy, add one in your code."

On some pages the code alone sets the order of the sections. There the tab says so: "Your site's code draws the sections on this page. You can change their words here. Their order stays in your code."

4. Add one of your sections to another page

On the page where you want it, pick a spot, then choose Add section. The first group, "Your site's sections", lists the sections the import found in your code. Content modeling explains how a section's fields are set up. Pick the quote strip.

Add section

Your site's sections

  • Pick the quote stripQuote stripFrom your code
  • Pricing tableFrom your code
  • Logo rowFrom your code

Vunora makes this one reviewed change to your code. It runs a build check, and until the check passes the page shows a placeholder where the section will go. Then the line reads "Added. It shows here after the build check." and the preview shows the section drawn by your own code. If the check fails, the line reads "The build check failed. Open the review to see why."

Pricing page, the spot you picked

While the check runs

A placeholder: Added. It shows here after the build check.

After the check

The quote strip, in place

The same menu has "Insert widgets": common parts such as a heading, an image, a button, an FAQ, columns and a form. Vunora writes a widget into your page's code. If a setting could not be written, the panel lists it.

5. Put a tag manager or a chat widget on every page

A workspace admin opens Site settings, then Custom code. There are two boxes. "Head code" is for "your tag manager container, analytics pixel or site verification tag". "End of body code" is for the no-JavaScript half of a tag manager, and where most chat widgets ask to go. Paste the snippet and choose "Save and run on every page". The screen warns you first: "This code runs on every page of this site, on real visitors. Check that you trust the source of the snippet before you save."

Site settings, Custom code
  • Paste the snippet hereHead codeYour tag manager container, analytics pixel or site verification tag
  • End of body codeThe no-JavaScript half of a tag manager, or a chat widget

Depending on how your site is built, the code reaches your live site within about a minute or after its next rebuild, and the screen tells you which. It needs no commit. The import puts the two slots into your site's layout. If they are missing from the branch your site deploys from, the screen says "Run the import again to put the slots on the branch this site deploys from."

6. Publish

Every change in steps 2 to 4 saves to a draft. Visitors see it after a person presses Publish. The change reaches your repo as a commit or a pull request, the way you set for the site, and your host deploys it like any other change.

src/components/QuoteStrip.tsx, 1 file changed

Removed

"Our team ships pages faster now."

Added

"Our team ships pages the same day now."

The commit a Publish made, with the section change in its file.

What changes for you: the developer writes a section once, and the team changes its words, moves it, hides it and places it on other pages without a ticket. The developer sees each of those as a commit or a pull request in the repo.

Where Vunora stops today

  • A new kind of section, one that does not exist in your code yet, is a code job. Your developer writes it in their own coding tool, or you ask Vunora AI, which shows the change and waits for your approval before it touches the code.
  • You cannot make a second copy of a section your code draws on the same page. Add the copy in code.
  • A section that reads data from its own page cannot always be added to another page. The screen says so when that happens.
  • Adding your own sections works on Next.js and Vite with React pages that show a preview in the editor. A page your site builds each time someone visits it has no preview in the editor. You edit its words in the Content tab, and visitors see them after you publish.
  • Custom code is for workspace admins. Anyone else can read it but not save it.
  • Vunora edits Next.js sites, with the App Router or the Pages Router, and Vite sites with React, from a GitHub repo. A site in another framework does not import.
  • A Content contributor can change words and sections as drafts but cannot publish them. Someone who can publish has to.

Sources

Terms in this post

Share

New posts by email

One email when a post goes up, about editing and publishing a vibe coded site.

We use your email only to send new posts, and every email has an unsubscribe link. See the Privacy Policy.

Three ways to start

  1. Do it yourself

    Connect your GitHub and see the answer on screen.

    Join the waitlist
  2. Talk to us

    We look at your site with you and answer your questions.

    Book a call
  3. Send it to your developer

    Your developer gets one page that explains the step.

    Email your developer

Built your site with an AI coding tool? Edit it here, no prompt needed.

Connect your site. Vunora tells you if it works for your site and what it will cost. You pay only after that.

Join the waitlistBook a callOne plan, set by your page count · AI from a prepaid wallet with a monthly limit · See pricing