Questions Readers Ask: How Do I Add a New Page to a Simple Website Without Breaking the Layout?
Adding a page to a simple website is a site-wide change. The reliable approach is to create the page, connect it to shared navigation, and verify that existing pages still look and work as expected. A CMS simplifies the shared parts, while hand-coded HTML requires explicit control over them.
Why adding a page is three separate problems, not one
The assumption that adding a page means only creating some new content overlooks two dependencies. The page needs a file or CMS entry, but visitors also need a navigation link, and the updated site needs a layout check. These are separate problems with a required sequence.
On hand-coded sites, navigation changes are where layout breaks most often originate, even when the new page itself looks correct. Existing pages belong in the check as well. Before starting, check whether the site uses a CMS or hand-coded HTML, because this determines where the page lives and how to change the shared parts.
Creating the page: how the process differs on a CMS versus hand-coded HTML
In WordPress, whether self-hosted or on WordPress.com, the standard dashboard route begins with Pages, then Add New. Enter the title, add content with blocks, and set a URL slug that describes the page and is rich in keywords. A parent page and template can be chosen if needed. Preview the result, then choose Publish or Save Draft according to whether the page is ready. This creates the page but does not automatically add it to the navigation menu.
WordPress.com’s course lesson also shows how to use the Site Editor. Select Pages in the left menu, choose Add New Page, give it a title, and create a draft. Patterns provide the starting point for the design. The right sidebar has settings for status, slug, and excerpt, and a preview in a new tab shows how the page looks before it is published.
SiteGround Website Builder / Ecommerce starts in the Pages tab with + ADD NEW. Choose a template or a blank page, set Page Status to published or draft, and supply the page name and Page URL. Configure the SEO and Social tabs as needed. Build the content, then click Update. The Page Settings panel also contains navigation settings, bringing the destination and its navigation setup into the same part of the interface.
GoDaddy Websites + Marketing begins with Edit Website, followed by Add Page in the right panel, or Pages and then Add on mobile. Select New Page, choose a template, and give the page a title. Set Show in Navigation and Show in Footer as needed, with changes saving automatically. The builder permits a maximum of 50 pages and also limits sections per page, so expansion has platform constraints as well as layout considerations.
A hand-coded site requires a different kind of work. Create a new HTML file, write or duplicate the full HTML structure, add the content, and upload the file via FTP. Each step requires coding and server knowledge. Unlike a CMS entry, the file includes the page structure that must remain consistent with the rest of the site. Duplicating an existing page provides that structure, but it also duplicates any header and footer markup stored directly in the file.
The file name becomes the URL path immediately. A name such as dental-implants.html describes the destination more clearly than page2.html, just as /about-us or /contact is clearer than /page-2 or /new-page on a CMS. Use descriptive slugs containing relevant keywords for both SEO and legibility. Once the page exists, a hand-coded site still needs an update to every existing page that has its own copy of the navigation.
Wiring the new page into shared navigation without breaking the header
A header has limited horizontal space, and an additional link changes how that space is divided. In a flex layout, the extra item can push navigation onto another line, which makes the header taller and moves the content below it down. The page can still load and function correctly. The failure is in the shared layout, so checking only the newly created content will not reveal its full effect.
CMS platforms manage navigation in one place. In WordPress, open Appearance, then Menus, or use the Site Editor’s Navigation block to add the page explicitly. The update then appears across the site automatically. GoDaddy handles the choice through its creation-time navigation and footer toggles, while SiteGround places navigation settings with the Page URL in Page Settings. These different interfaces share the same advantage of storing the navigation template once.
On hand-coded sites, copying the <nav> block into every file makes future updates depend on repeated manual edits. A missed file leaves that page with a different menu. The inconsistency may be easy to overlook during publication. More importantly, a layout correction made to one copy does not correct the others. Shared navigation therefore needs a shared source even when every copy of the markup is the same when the site is created.
One approach stores the header and footer in separate HTML files and uses JavaScript fetch to inject them into placeholders on each page. This avoids a server-side include, but introduces a search-indexing trade-off. Search engines other than Googlebot may not execute the JavaScript, so critical navigation links may not be indexed. A static site generator such as Astro, Hugo, or Eleventy provides a build-time alternative, as does a meta-framework such as Next.js or SvelteKit. Shared components are compiled into the output HTML before it reaches the browser, leaving the navigation indexable without a runtime dependency.
Central management makes a correction consistent, but it does not create more room in the header. If the new link causes wrapping, inspect how the flex container allocates space between the logo and navigation. They may need to share horizontal space. Where that configuration is duplicated across files, the correction must reach every copy. Where it is shared, one correction can cover the site. Until the layout is corrected, related links can be grouped under a dropdown, labels abbreviated, or lower-priority destinations moved to the footer.
A label such as “About Our Company” takes more horizontal space and can push an already-full row into wrapping. Shorter labels also get their message across faster to keyboard and screen-reader users. The aim is concise, legible navigation rather than fitting every possible destination into the header. A working link is only one part of that result.
Checking that nothing else shifted after the new page and nav link are live
A link-click test can pass even when a slightly taller navigation bar pushes the hero section down on every page. Function and appearance are different checks. Open the new page and several existing pages after publication, and inspect their headers at desktop, tablet, and mobile widths. This checks the shared change where its consequences appear.
Look for navigation wrapping at any breakpoint and for a hero or first content section that no longer starts at its expected position. On the new page, check that the footer appears and matches existing pages. Include both ends of the page in the review. On WordPress, WordPress.com, and SiteGround, use the available preview before publication, then inspect the live site too. Some previews do not render exactly as the published page does.
Manual review can miss these shifts when the person reviewing a stylesheet did not write the change. A coding agent or a CMS theme update may have produced it, and the reviewer may not open the branch in a browser. Unit and integration tests validate function and logic rather than, by themselves, inspecting a page’s rendered layout at a particular viewport width. A navigation bar can therefore become taller while those tests continue to pass.
Visual regression checks address that missing evidence by comparing screenshots in CI. Screenshots of existing pages from before and after the change let the check flag things such as a taller navigation bar before users see them. Existing pages provide the comparison baseline. A brand-new page has no earlier screenshot, so an AI-assisted visual check that assesses the page against its own structure is more immediately useful there than baseline comparison. The two approaches address different verification needs within the same update.
When a coding agent wrote the page or changed its styles, verification should also close the loop back to that agent. A failure accompanied by a recording and reproduction steps can go directly to the system that made the change. The agent can then fix and re-verify it. This avoids relying on a human to relay the bug while preserving the evidence needed to reproduce it.
What to do when the layout does break and how to find the cause quickly
If navigation wraps onto a second line at desktop width, begin with the flex container holding the logo and links. It may stack the logo and links so that each takes the full width, or the link text may need more space than there is. Inspect that allocation before changing unrelated page styles. Adjust the flex properties so the logo and navigation can share space, shorten link text, or group related links under a dropdown. If wrapping occurs specifically on tablets and small laptops, check the breakpoint at which the mobile menu activates and adjust it accordingly.
If the hero or banner moves down or sits off-center, inspect the header height before repositioning the content. A logo rendering at its intrinsic size instead of a constrained size can make the header taller and push everything below it. Constrain the logo height explicitly in CSS, since negative margins applied to the hero can conceal the problem at one viewport and fail at another.
If the new page looks right while existing pages look wrong, check the shared styles that were changed for the new page. A new class, modified container, or added rule may affect elements that other pages depend on. Browser developer tools can show which rule caused the change. Scope that rule more narrowly, and check what else depends on the modified selector before saving changes to a shared stylesheet.
If some hand-coded pages show the new navigation link and others do not, the likely cause is duplicated navigation markup. Some files received the edit and others did not. Implement shared navigation through JavaScript fetch, a server-side include, or a static site generator, then maintain the menu in one place.
In these cases, adding margins, negative margins, or extra overriding selectors can make the layout look fixed even though it can still break. The layout may look right at the current width while the cause of the break at other widths is still there. Correct the dependency. Pre-publication previews and visual checks in CI are valuable because they expose those structural changes before a new page turns into a live-site diagnosis.