Check 12.18 · Internal linking

Set up top-down, bottom-up and cross internal linking

Set up the three axes of internal linking, top-down, bottom-up and cross, for each page type: link matrix, crawl audit and templates.

Priority
Important
Difficulty
Intermediate
Estimated time
1 to 3 days
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

Complete internal linking combines three axes. Top-down linking connects high-level pages to deeper pages: home page to categories, categories to subcategories and product pages, pillar pages to supporting content. Bottom-up linking connects deep pages to their parent pages and to high-stakes pages: product page to category, article to pillar, informational article to commercial page. Cross linking connects complementary pages at the same level or in neighboring branches: related articles, similar categories, complementary products. The task is to write down, for each page type, the links expected on each of the three axes, measure them with a crawl, then build them into templates and content.

Why it matters

The three axes do not serve the same purpose, and a site that works on only one or two of them leaves pages behind:

  • Top-down: these are the links through which bots discover deep pages and through which those pages receive part of the importance of strong pages. Google asks that every important page receive at least one link from another page on the site, and states in its e-commerce documentation that the more internal links a page receives, the higher its relative importance within the site.
  • Bottom-up: deep pages (product pages, long-tail articles) often receive most of the traffic and some of the external links. Links to their parent pages and to commercial pages concentrate that importance on the pages that target the main queries.
  • Cross: it connects neighboring topics that the hierarchy keeps apart. Through anchors and context, it describes the relationships between topics to search engines, and it gives readers a logical next step in their visit instead of a return to the search results.

Without a plan, each axis depends on a different mechanism: the menu for top-down, breadcrumbs for bottom-up, a “Recent posts” block for cross. A frequent outcome: product pages four clicks from the home page, articles that never link to the pages that sell, and closed silos where the blog only links to the blog.

Google sets no ideal number of links per page. What it documents is crawlable HTML links, descriptive anchors and useful context around the link: the three axes are a working method for applying these principles everywhere, not a ranking rule.

What it improves

  • Discovery and crawling of deep pages (top-down axis).
  • Relative importance of strategic pages Categories, pillars and commercial pages (bottom-up axis).
  • Search engines' understanding of the relationships between topics, and pages viewed per visit (cross axis).
  • Depth Fewer priority pages more than three clicks from the home page.
  • Orphan pages A rule per page type keeps a new page from being left without an incoming link.
  • Rankings An indirect and variable effect; internal linking does not make up for a weak page.

How to check

Quick check: open one page of each type (home page, category, subcategory, product page, pillar page, article) and note, in its main content, outside the menu and footer, at least one link to a deeper page, one link to its parent page or a commercial page, and one link to a neighboring page. An axis is missing as soon as one of the three boxes stays empty for a page type that should have it (the matrix in step 2 says which).

Full check with a crawl (Screaming Frog, free up to 500 URLs, or any crawler that exports links): classify each internal link by axis, as described in step 3.

In a site's code, look in each template for the three blocks: list of children (top-down), breadcrumbs and parent link (bottom-up), related pages block (cross). Check with curl that they are present in the initial HTML, as <a href> tags, and not added later with JavaScript.

Expected result: each page type covers the axes set out in the matrix, with at least one link placed in the content for the bottom-up and cross axes, descriptive anchors, and canonical URLs that return 200.

How to implement

The examples follow Thé des Lisières, a fictional online shop selling loose-leaf tea.

Step 1 — Give each page a level and a branch

In a Pages tab, one row per indexable URL (the crawl export or the sitemap is enough). The level is the position in the hierarchy, not the number of clicks. The branch is the topic the page belongs to, whether commercial or editorial: the guide on brewing sencha and the “Green tea” category are in the same branch.

A · URL B · Type C · Level D · Branch
https://example.com/ Home page 0 home
https://example.com/the-vert/ Category 1 the-vert
https://example.com/the-vert/sencha/ Subcategory 2 the-vert
https://example.com/the-vert/sencha/sencha-bio-kagoshima/ Product page 3 the-vert
https://example.com/guides/the-vert/ Pillar page 1 the-vert
https://example.com/guides/infusion-sencha/ Article 2 the-vert
https://example.com/the-noir/ Category 1 the-noir

With a regular URL pattern, the type and branch can be derived from the URL with a formula; otherwise, fill them in by template type.

Step 2 — Write the three-axis matrix

This is the central deliverable: for each page type, the outgoing links expected on each axis, where they go and whether they are added by hand or by the template.

Page type Top-down Bottom-up Cross
Home page All categories (menu) and 3 to 6 strategic pages in the content — —
Category Subcategories and featured products in the introduction text; the topic's pillar page Home page (logo, breadcrumbs) 2 to 4 related categories (“Black tea” from “Green tea”)
Subcategory All its product pages, paginated as <a href> links Parent category: breadcrumbs and a sentence in the text Sibling subcategories (“Gyokuro” from “Sencha”)
Product page Variants, if any Subcategory and category: breadcrumbs and a link in the description 2 to 4 complementary products; usage guide
Pillar page All its supporting articles, in the sections of the text The topic's commercial category Other related pillars
Article More detailed pages, if any Pillar page in the introduction; relevant commercial page in the text 2 to 5 neighboring articles: prerequisite, next step, comparison

Adapt the figures to your site: they are working orders of magnitude, not Google thresholds. For a service site, replace categories and product pages with practice area pages and service pages; for a media site, with sections and articles.

Good to know: the bottom-up axis also includes links from informational content to the commercial page that meets the same need (a brewing guide to the Sencha category). It is often the weakest axis on sites that have a blog.

Crawl the site, export all links (Bulk Export > Links > All Inlinks in Screaming Frog) and paste the export into an Export tab. Here, the source is in column B, the destination in C and the link position in N; these columns vary depending on the version of the tool. Add four columns that look up the level and branch of the source and destination in the Pages tab, then an Axis column.

Formulas for Google Sheets or Excel in an English locale, in row 2 of the Export tab:

Q · Source level:         =IFERROR(VLOOKUP(B2,Pages!$A:$D,3,FALSE),"")
R · Source branch:        =IFERROR(VLOOKUP(B2,Pages!$A:$D,4,FALSE),"")
S · Destination level:    =IFERROR(VLOOKUP(C2,Pages!$A:$D,3,FALSE),"")
T · Destination branch:   =IFERROR(VLOOKUP(C2,Pages!$A:$D,4,FALSE),"")

U · Axis:
=IF(OR(Q2="",S2=""),"",IF(AND(R2<>T2,Q2>0,S2>0),"Cross",IF(Q2<S2,"Top-down",IF(Q2>S2,"Bottom-up","Cross"))))

French-language Excel names these functions SIERREUR, RECHERCHEV, SI, ET, OU and FAUX, with semicolons as argument separators.

A link between two different branches is cross; within the same branch, it goes down or up depending on the levels; the home page, at level 0, only makes top-down links and only receives bottom-up ones.

Then build a pivot table: the source as rows, the axis as columns, the number of links as values, filtered on the Content position to count only links in the content. Compare each row with the matrix from step 2 and note the gaps in an Action column.

Step 4 — Build the three axes into templates

Templates guarantee the minimum for every new page: list of children, breadcrumbs, related pages block. The text provides the rest: contextual links, with chosen anchors (see add contextual links (opens in a new tab)). The following subsections give the implementation for each platform.

WordPress

Versions WordPress 6.4 to 7.1, Yoast SEO or Rank Math breadcrumbs (November 2026 versions).

Top-down: on the pillar page, a Query Loop block filtered on the topic's category lists its articles; on category archives, the theme's category template already lists the articles. Add by hand, in the pillar's text, a link to each article in the section that covers it.

Bottom-up: enable Yoast SEO or Rank Math breadcrumbs, and add the sentence linking to the pillar described in link articles and pillar pages in both directions (opens in a new tab). Links to commercial pages go in the text.

Cross: a “Read next” block computed on the server, based on shared tags. Create wp-content/mu-plugins/maillage-transversal.php:

<?php
/*
 * Plugin Name: Cross linking
 */

add_filter('the_content', function (string $content): string {
    if (! is_singular('post') || ! in_the_loop() || ! is_main_query()) {
        return $content;
    }

    $tagIds = wp_get_post_tags(get_the_ID(), ['fields' => 'ids']);

    if ($tagIds === []) {
        return $content;
    }

    $related = get_posts([
        'tag__in' => $tagIds,
        'post__not_in' => [get_the_ID()],
        'posts_per_page' => 3,
        'ignore_sticky_posts' => true,
    ]);

    if ($related === []) {
        return $content;
    }

    $items = array_map(
        fn (WP_Post $post): string => sprintf('<li><a href="%s">%s</a></li>', esc_url(get_permalink($post)), esc_html(get_the_title($post))),
        $related
    );

    return $content . '<h2>Read next</h2><ul class="read-next">' . implode('', $items) . '</ul>';
});

Tags must describe specific topics (“sencha”, “cold brew”), not broad categories, otherwise the block links unrelated articles. Clear the page cache after adding it.

Shopify

Versions Online Store 2.0 themes, all Shopify plans, November 2026.

Top-down: link the sub-collections in each collection's description and in the menu (Content > Menus). The collection's product grid provides the links to the product pages.

Bottom-up and cross: create two product metafields in Settings > Metafields and metaobjects > Products > Add definition: “Main collection” (type Collection) and “Complementary products” (type Product, list of products). Fill them in on each product page, then, in the theme editor, add a Custom Liquid section to the product template:

{%- assign parente = product.metafields.custom.main_collection.value -%}
{%- if parente != blank -%}
  <p>Discover our full selection of <a href="{{ parente.url }}">{{ parente.title | downcase }}</a>.</p>
{%- endif -%}

{%- assign complementaires = product.metafields.custom.complementary_products.value -%}
{%- if complementaires != blank -%}
  <h2>Pairs well with</h2>
  <ul>
    {%- for item in complementaires -%}
      <li><a href="{{ item.url }}">{{ item.title }}</a></li>
    {%- endfor -%}
  </ul>
{%- endif -%}

Check the namespace and keys shown in each definition (custom.… by default).

Watch out: in the Dawn theme and many others, the “Product recommendations” section is loaded with JavaScript after the page is displayed. Its links are not in the initial HTML: do not rely on it alone for the cross axis.

PrestaShop

Versions PrestaShop 8 and 9.

Top-down: check that your theme displays subcategories on category pages, and link them in the category description. Bottom-up: breadcrumbs are built in; add a link to its main category in each product's description. Cross: fill in the “Related products” field on each product page; the Classic theme displays them on the product page. If your theme is customized, check with curl that these blocks are in the initial HTML.

Magento

Versions Magento Open Source and Adobe Commerce 2.4.

Top-down: set parent categories to the “Static block and products” display mode and list their subcategories in the static block. Bottom-up: a product page's breadcrumbs only show the category path if the visitor arrives through a category; add a link to the main category in the description. Cross: fill in the “Related Products, Up-Sells, and Cross-Sells” section of each product; related products are displayed on the product page, cross-sells only in the cart.

Laravel

Versions Laravel 11 to 13.

With a Page model that has a parent_id column and a related_pages pivot table, each axis becomes a relationship:

// app/Models/Page.php
public function parent(): BelongsTo
{
    return $this->belongsTo(Page::class, 'parent_id');
}

public function children(): HasMany
{
    return $this->hasMany(Page::class, 'parent_id')->orderBy('position');
}

public function related(): BelongsToMany
{
    return $this->belongsToMany(Page::class, 'related_pages', 'page_id', 'related_page_id');
}

In the controller, load the three axes with $page->load(['parent', 'children', 'related']), then display them in the view:

@if($page->parent)
    <p>This content is part of <a href="{{ route('pages.show', $page->parent) }}">{{ $page->parent->title }}</a>.</p>
@endif

@if($page->children->isNotEmpty())
    <ul>
        @foreach($page->children as $child)
            <li><a href="{{ route('pages.show', $child) }}">{{ $child->title }}</a></li>
        @endforeach
    </ul>
@endif

@if($page->related->isNotEmpty())
    <h2>Read next</h2>
    <ul>
        @foreach($page->related as $relatedPage)
            <li><a href="{{ route('pages.show', $relatedPage) }}">{{ $relatedPage->title }}</a></li>
        @endforeach
    </ul>
@endif

The same breakdown applies to Next.js, Nuxt or Astro: a parent field, a list of children and a list of related pages in the content source, rendered on the server as <a href> links.

Step 5 — Check at each publication

Add three questions to the editorial checklist: which deeper page does this content link to, which parent or commercial page, which neighboring pages? Rerun the classification by axis every quarter, or after a navigation redesign.

Common mistakes

  • Working on only one axis: a rich menu (top-down) without a single link back from the blog to the commercial pages (bottom-up).
  • Leaving bottom-up linking to breadcrumbs alone: they are useful, but do not replace a link placed in the text with a chosen anchor.
  • Linking everything to everything in the name of cross linking: blocks of twenty unrelated links dilute importance and do not help the reader. Topical proximity comes before quantity.
  • Completely closed silos: forbidding any link between branches deprives the site of useful cross links (a tea category and the teapot category).
  • Blocks loaded with JavaScript: related products, related articles or subcategories missing from the initial HTML.
  • Links to redirects or non-canonical URLs in templates, repeated across thousands of pages.

Frequently asked questions

What are top-down, bottom-up and cross internal linking?

They are the three directions of internal links. Top-down linking goes from high-level pages to deeper pages, such as from the home page to categories, then to product pages. Bottom-up linking goes back up from deep pages to their parent pages and to commercial pages. Cross linking connects complementary pages at the same level or in neighboring branches, such as two related articles or two products that go together.

Does cross linking break topic silos?

Not if it stays relevant. A silo groups a topic's pages to strengthen their consistency, but isolating it completely deprives readers and search engines of useful relationships, such as the one between a tea category and a teapot category. Keep most links within the branch, and add cross links only when readers have a real reason to move from one topic to the other.

Updated on

Topic checklist (PDF)

And now?

In the “Internal linking” topic

  1. Identify priority commercial pages
  2. Identify pages that earn backlinks
  3. Identify the most visible pages
  4. Pass link equity to strategic pages
  5. Link complementary content (cross linking)
  6. Link articles and pillar pages in both directions (top-down and bottom-up)
  7. Link guides and commercial pages
  8. Use descriptive and varied anchor text
  9. Avoid generic anchors out of context
  10. Add contextual links
  11. Remove unnecessary links
  12. Fix links to redirects or non-canonical URLs
  13. Fix broken links
  14. Check click depth
  15. Identify under-linked pages
  16. Suggest relevant related content
  17. Audit the internal link graph
  18. Set up top-down, bottom-up and cross internal linking