Move a section
A page's content is a list of sections, each one <section> from its opening tag to its closing </section>. Moving one is cut and paste. Every page loads the same stylesheets and scripts, so a section taken from one page works on any other.
How to access
Any page → <div id="page-wrapper__content"> inside <main>
The sections are the tags directly inside it, one after another, in the order the page shows them.
Moving a section within a page
▶️ Step 1.
Find the section's opening <section line. In VS Code, click the arrow in the margin beside it to fold the section into one line, so you see where it ends.
▶️ Step 2.
Select the folded line and cut it.
▶️ Step 3.
Paste it above or below another section, never inside one. On the Studio page, the Collaborations section moved above the team now reads:
html
<div id="page-wrapper__content" class="page-wrapper__content">
<section class="mt-header">…</section>
<section class="studio__chapter studio__founder">…</section>
<section class="studio__rule studio__chapter">…Collaborations…</section>
<section class="studio__rule">…the team…</section>Copying a section to another page
▶️ Step 1.
Fold the section in the page it comes from, and copy it.
▶️ Step 2.
Open the other page and paste it between two sections of its <div id="page-wrapper__content">, or after the last one.
▶️ Step 3.
Check its colours. A section without its own data-bs-theme takes the scheme of the page it lands in: the Collaborations section from Studio, pasted into a project with a dark page, turns dark. To keep the colours it had, give it the scheme of the page it came from, written on that page's <main>:
html
<section class="studio__rule studio__chapter" data-bs-theme="smoke">The schemes there are: Colours and schemes.
Moving the first section
On the archives, the Studio page and Contacts / Classic, the first section carries mt-header, the space that keeps it below the header. Without it, the section starts at the top of the window, under the header. When you move another section to the top of such a page, or its first one down, move mt-header too, so the section that ends up first has it:
html
<section class="mt-header">Pages that open with a masthead or a slider carry no mt-header: leave their first section first.
A section that does nothing
Open the browser's console (F12). A component whose name or options were damaged in the paste says so there, starting with "Velum:": How a page is built.
Next: Add a project.