How to Build Archive, 404 and Search Templates with the Elementor Theme Builder

Build an Elementor archive template for categories and custom post types, plus custom 404 and search results pages, with display conditions that do not clash.

An Elementor archive template replaces every list page your theme designs for you: the blog, categories, tags, authors, dates, custom post type archives and search. Three templates (Archive, Search Results and Error 404) cover them all.

This guide builds all three in about an hour, sets display conditions that do not fight each other, and fixes the page-2 404 error that catches most first attempts.

âš¡ Quick answer

  • Best for: blogs and content sites on Elementor Pro whose category, search and 404 pages still look like the theme default.
  • Skip it if: you run Elementor Free, or your theme already styles archives the way you want. The Theme Builder is a Pro feature.
  • Time needed: 45 to 75 minutes for one archive, one search results and one 404 template, including testing.
  • Our call: one All archives template with the Archive Posts widget, one Search results template, one 404 template. Add category-specific templates only when a category truly needs a different layout.

What are archive, 404 and search templates in Elementor?

WordPress builds every list page from the same idea: run a query, then loop through the results. Elementor’s archive template documentation (updated 25 September 2026) calls all of them Archive pages: categories, authors, dates and search results alike.

The Theme Builder gives you three site parts for them. Each replaces the theme’s own template only where its display condition matches.

TemplateWhere it showsCondition to setMain element
ArchiveBlog page, categories, tags, authors, dates, custom post type archivesArchives, All archives (or a narrower archive)Archive Posts widget or a Loop Grid on Current Query
Search ResultsThe page WordPress shows for ?s= searchesArchives, Search resultsArchive Posts widget or a Loop Grid on Current Query
Error 404Any URL WordPress cannot findSingular, 404 PageHeading, search form, links to popular pages
Source: Elementor Help Center, Theme Builder and display conditions articles, checked 4 December 2026.

Single templates are the other half of the system. If your posts still use the theme layout, our guide to creating a single post layout with Elementor pairs naturally with this one, since archive cards link straight into it.

The catch: an archive template designs the frame, not the list itself. Which posts appear is decided by WordPress for that URL. Fight that query and pagination breaks, as the troubleshooting section shows.

What you need before you start

  • Elementor Pro. The Theme Builder, Archive Posts widget and Loop Grid are all Pro features. Our Elementor review covers what the Pro licence adds.
  • A posts page set in WordPress. Under Settings, Reading, choose a page in the Posts page dropdown. Elementor’s docs tell you to fix this first.
  • A few real posts in at least two categories, so previews and pagination have something to show.
  • The number of posts per page decided. Settings, Reading, “Blog pages show at most” controls the Archive Posts widget.
  • A staging copy or a backup. Archive conditions change every list page at once.

If you already built a header and footer, you know the workflow. Our Elementor Theme Builder header and footer guide covers the same Publish and conditions screens for site-wide parts.

Step 1: Open the Theme Builder and add an Archive template

Go to Elementor, Theme Builder in wp-admin. The Theme Builder help article lists two shortcuts: the Elementor logo menu inside the editor, and Ctrl+Shift+E (Cmd+Shift+E on a Mac).

Elementor Theme Builder screen with the Site Parts list showing Header, Footer, Single Post, Single Page, Archive, Search Results, Loop Item and Error 404
The Theme Builder lists Archive, Search Results and Error 404 as separate site parts. Source: Elementor Help Center (elementor.com/help/customize-the-search-results-archive/), captured December 2026.
  1. Click Archive in the Site Parts list, then Add New.
  2. Pick a block from the library, or close the library to start from scratch.
  3. Name the template something you will recognise later, such as “Archive, all”.

A green dot on a site part means it has conditions and is live. A grey dot means it is a draft that shows nowhere. That dot answers the most common support question before you ask it.

Common mistake: building the blog page as a normal Elementor page with a Posts widget. It looks right on page one, then breaks on page two. Use an Archive template instead.

Our older walkthrough on building a blog with Elementor Pro shows the full blog setup.

Step 2: Design the archive layout

Before designing, set the preview. Open the template settings (gear icon), expand Preview Settings and choose a real category. Without it, dynamic widgets render empty and you design blind.

Add the archive heading and description

Drop a Heading and set its title to the Archive Title dynamic tag. In the tag’s settings, switch Include Context off to drop the “Category:” prefix. Add a Text Editor with Archive Description under it.

Category descriptions are free content. Write two useful sentences for each one in Posts, Categories, and every category page gets a unique intro without touching the template.

Choose how the posts are listed

You have three options, and they are not interchangeable:

ElementUse it whenThe catch
Archive Posts widgetYou want a quick, reliable grid with Classic or Cards skinsDesign options are limited; posts per page comes from Settings, Reading
Loop Grid on Current QueryYou want full control of each card with a Loop Item templateLeave the source on Current Query, or pagination breaks
Atomic Loop (Editor 4)Your site uses the Atomic Editor with classes and variablesNewer element; test pagination on staging first
Source: Elementor Help Center (Archive Posts, Loop Grid and Atomic Loop articles), checked 4 December 2026.

The Archive Posts widget offers 1 to 6 columns, Classic or Cards skins, excerpt length, meta data and pagination up to Infinite Scroll. It has no query controls, which is exactly why it paginates correctly.

For custom card designs, build a Loop Item and place a Loop Grid set to Current Query. Our Elementor Loop Grid tutorial walks through the Loop Item side, including ACF fields.

Saving that card as a reusable part is covered in our guide to Elementor Components.

On an Atomic Editor site, the Atomic Loop splits into Loop, Loop Layout and Loop Item, styled with your design-system classes. Our Elementor V4 explainer covers the classes and variables it relies on.

Do this if you are unsure: start with the Archive Posts widget and Cards skin. You can swap in a Loop Grid later without changing the conditions.

Step 3: Set display conditions that do not clash

Click Publish. The conditions window opens with Include, a target, and an Add Condition button. For your main archive choose Include, Archives, All archives, then Save & Close.

Elementor Publish Settings conditions window asking where to display the template, with an Include or Exclude dropdown, an Entire Site target and an Add Condition button
Every condition row starts with Include or Exclude, then the target. Source: Elementor Help Center (elementor.com/help/conditions/), captured December 2026.

The display conditions reference (updated 1 October 2026) lists the archive targets:

ConditionWhat it matches
Archives, All archivesEvery archive, including search results unless a search template exists
Archives, Posts archiveThe blog posts page and post archives
Archives, Categories (or Tags)All categories, or one category you pick
Archives, Direct or Any Child Category ofChild categories of a parent you pick
Archives, Author archive and Date archiveAuthor pages and date pages
Archives, Search resultsThe search results page
Archives, <post type> archiveA custom post type’s archive, once it has one
Source: Elementor Help Center, Set conditions for site part templates, checked 4 December 2026.

Which template wins when two match?

The more specific condition wins. A one-category template beats All archives on that category, and a Search results template beats it on search pages. That is why one general template plus a few specific ones is safe.

Two templates with the same condition are the real problem. Elementor warns you in the conditions window before you save:

Elementor conditions window showing a red warning that a Header template already uses the same Entire site condition and asking for different conditions
The conflict warning appears when another template of the same type already uses that condition. Source: Elementor Help Center (elementor.com/help/conditions/), captured December 2026.

To change conditions later, open the template, click the arrow beside Publish and choose Display Conditions. Use Exclude rows to carve out exceptions, such as All archives except the Podcasts category.

Step 4: Build category and custom post type archives

A different layout for one category

Duplicate your main archive from the Theme Builder’s three-dot menu or build a new one, change what that category needs, then set Include, Archives, Categories and pick the category. It overrides the general template only there.

For per-category banners without extra templates, add an ACF image field to categories and show it with a dynamic tag. Elementor’s docs suggest this, and our custom field plugins roundup compares the field plugins that can do it.

An archive for a custom post type

A custom post type only gets an archive URL when it is registered with has_archive set to true. In a plugin UI that is the “Has Archive” option; in code it looks like this:

register_post_type( 'project', array(
    'label'       => 'Projects',
    'public'      => true,
    'has_archive' => true, // creates /projects/
) );

Then open Settings, Permalinks and click Save.

That refreshes rewrite rules. Now build an archive template and choose Include, Archives, Projects archive. Our guide to creating custom post types covers registration with ACF and with code.

Common mistake: expecting a taxonomy to have its own archive page. In WordPress, each term gets an archive (for example /project-type/branding/), but the taxonomy as a whole does not.

Step 5: Build the search results template

Search results are an archive too, but they deserve their own template: visitors arrived with a question, not to browse. In the Theme Builder click Search Results, then Add New.

Elementor’s search results guide shows how to preview real queries. Open the settings (gear icon), expand Preview Settings, type a term you know exists in the Search Term field and click Apply & Preview.

Elementor Search Results Settings panel with Preview Settings open, Preview Dynamic Content as set to Search Results, the Search Term field filled with hat and the Apply and Preview button
Preview a search template with a real term, then with a term that has no results. Source: Elementor Help Center (elementor.com/help/customize-the-search-results-archive/), captured December 2026.
  • Put a Search Form at the top, prefilled with the query, so people can refine without scrolling back to the header.
  • Add a Heading with the Archive Title tag. On search pages it prints “Search Results for:” followed by the term.
  • List results with the Archive Posts widget or a Loop Grid on Current Query.
  • Fill in the Nothing Found Message with something useful: check the spelling, try a broader word, or browse the main categories.

Then preview a nonsense term. That empty state is what frustrated visitors see, so it deserves real links, not a shrug.

Publish with Include, Archives, Search results. It overrides your All archives template on search pages only.

Step 6: Build a 404 template that sends people somewhere

Click Error 404 in the Theme Builder, then Add New. When you publish, the condition is already set to the 404 page, as the Error 404 site part article describes.

A good 404 page answers one question: where should I go instead? Keep it short and useful:

  • A plain headline (“That page moved or never existed”) and one sentence of help.
  • A Search Form, which is the most useful element on the page.
  • Three to six links to your most visited guides or main categories.
  • Optionally, a short “report a broken link” form so readers can tell you what they expected to find. Our tutorial on creating forms in Elementor V4 shows how to build one with Atomic Forms.

The template only changes the design. WordPress still sends a real 404 status code, so search engines keep treating missing pages as missing.

Do not redirect every 404 to the homepage; that hides real errors and is treated as a soft 404.

How to check it worked

  • Theme Builder dots: Archive, Search Results and Error 404 templates all show green dots.
  • Blog and category pages: open the posts page and two categories. Each shows its own title and description.
  • Pagination: open /category/your-category/page/2/ on a category with more posts than one page holds. It must load, not 404.
  • Custom post type: visit the archive URL, such as /projects/.
  • Search: search for a real term, then for “qwxzqwxz” to see the empty state.
  • 404: visit a made-up URL and confirm the status in your browser’s Network tab reads 404, not 200.
  • Mobile: check the grid in responsive mode; three columns rarely survive a phone screen.

Clear any page cache after publishing templates. A cached category page can show the old theme layout for hours and send you hunting for a problem that is not there.

What breaks and how to undo it

Page 2 of the archive returns a 404

This is the classic one, discussed in Elementor’s GitHub issue #7613. A Posts widget or a Loop Grid with its own query runs a second query, but WordPress decides 404s from the main query.

When the second query has more pages than the main one, page 2 simply does not exist as far as WordPress is concerned.

Fix: use the Archive Posts widget or a Loop Grid on Current Query, and set the count in Settings, Reading. If one archive needs a different count, change the main query with pre_get_posts instead:

add_action( 'pre_get_posts', function ( $q ) {
    if ( ! is_admin() && $q->is_main_query() && $q->is_post_type_archive( 'project' ) ) {
        $q->set( 'posts_per_page', 9 );
    }
} );

Use a child theme or a snippets plugin.

Never put snippets like this in a parent theme that updates.

The theme sidebar disappeared

Expected behaviour. Elementor archive templates remove the theme’s sidebar unless the theme registers locations through Elementor’s Theme Locations API. Add a sidebar column inside the template with the Sidebar widget, or keep the theme archive.

The template does not show at all

  • Grey dot: the template has no condition. Open it and add one.
  • A more specific template wins on that URL. Check for a category or search template you forgot.
  • A custom post type archive 404s: has_archive is false, or permalinks were not re-saved.
  • The Theme Builder itself is blank: Elementor needs the WordPress REST API, and a security plugin may be blocking it.

How to undo everything

Open the template, click the arrow beside Publish, choose Display Conditions and delete the rows. The theme’s archive returns at once, and nothing is lost. Moving a template to trash does the same, but keep it until the replacement works.

Frequently Asked Questions

Is the Elementor Theme Builder free?

No. The Theme Builder, including Archive, Search Results and Error 404 templates, is part of Elementor Pro. Elementor Free can design pages, but archive, search and 404 pages keep your theme’s layout unless you upgrade or use an addon that provides its own theme builder.

What is the difference between the Archive Posts widget and the Posts widget?

The Archive Posts widget only works in archive templates and shows whatever WordPress queried for that URL, with no query settings. The Posts widget runs its own query and belongs on normal pages. Inside an archive template it shows the wrong posts or breaks pagination.

Why does page 2 of my Elementor archive show a 404?

Your posts widget runs its own query with a different count from Settings, Reading, so WordPress thinks page 2 does not exist. Switch to the Archive Posts widget or a Loop Grid on Current Query, or change the count with pre_get_posts.

How do I create a custom post type archive in Elementor?

Make sure the post type is registered with has_archive set to true, then re-save Settings, Permalinks. Build an archive template in the Theme Builder and set the condition to Include, Archives, and your post type’s archive. List items with Archive Posts or a Loop Grid.

Can I use a different archive template for each category?

Yes. Build one general template set to All archives, then extra templates set to Include, Archives, Categories with a specific category. The more specific condition wins on that category, so the general template still covers everything else without any conflict warning.

Does an Elementor 404 template still return a 404 status code?

Yes. The 404 template only changes the design of the page. WordPress still sends a 404 status, so search engines treat the URL as missing. Avoid redirecting all 404s to the homepage, which hides real errors and can be treated as a soft 404.

How do I show a message when Elementor search finds nothing?

In the Search Results template, fill in the Nothing Found Message in the Archive Posts widget, or turn it on in the Loop Grid settings. Preview a nonsense search term to check it, and add category links so the empty page still helps.

Why is my Elementor archive template not showing?

Usually the template has no display condition, shown by a grey dot in the Theme Builder, or a more specific template wins on that URL. Also check that the archive actually has posts, that permalinks were re-saved and that page caches were cleared.

Which templates should you build first?

  • Build first: one Archive template on All archives with the Archive Posts widget. It fixes the blog, categories, tags and authors in one go.
  • Build second: a Search Results template with a search form and a helpful empty state.
  • Build third: a 404 template with search and a handful of links.
  • Add later if: one category or custom post type genuinely needs a different layout or card design.
  • Skip it if: your theme’s archives already look right and you are on Elementor Free.

Our pick for most StyleMyWP readers: three templates, conditions kept simple, and every list driven by the main query. That combination survives theme updates and never breaks page 2.

Looking for extra widgets for these layouts? Our roundup of Elementor addons shows which packs add archive and search elements worth installing.

Last updated December 2026.

Lokesh Kapoor
Lokesh Kapoor

Lokesh Kapoor is a web developer, blogger, and digital creator passionate about WordPress, SaaS, automation, and modern web technologies. He shares practical tutorials, honest insights, and useful resources to help creators, entrepreneurs, and website owners build faster, smarter, and more effective online experiences with confidence, clarity, and consistency.

Articles: 48

One comment

Leave a Reply

Your email address will not be published. Required fields are marked *