Moving a CKAN theme from Bootstrap 3 to Bootstrap 5

If your CKAN theme still depends on Bootstrap 3 templates, it will not carry forward cleanly to CKAN 2.11 or later. This page explains what changes, the order to move in, and what drives the effort.

On this page

Why moving a CKAN theme from Bootstrap 3 to Bootstrap 5 is now required

If your portal's theme was built on Bootstrap 3, you cannot carry it unchanged into a current CKAN release. CKAN made Bootstrap 5 the default in CKAN 2.10, and CKAN 2.11 removed the Bootstrap 3 templates entirely, so a theme that still depends on them must be rewritten before you move to 2.11 or 2.12. The upgrade and the theme rewrite are one piece of work, not two. Plan them together so the portal does not sit on an unsupported version while the theme is being rebuilt.

The supported path follows CKAN's release policy. The tech team supports the latest patch of the current minor version and the previous minor version for security and bug fixes, and older patch releases lose support once a newer patch is out. Patch releases do not break backwards compatibility, but minor releases may include backwards-incompatible changes, which is where template and block changes typically land. Start by confirming which CKAN minor version your portal runs, whether that version is still in support under the CKAN releases policy, and which patch level is installed in production.

Then confirm the target version with your own environment rather than assuming the newest release is the right one. Check that every custom extension your theme relies on declares support for the target CKAN version, because a theme cannot be finished if a dependency still targets Bootstrap 3 markup or an older core. Record the current patch level, the target minor and patch, and the owner of each extension in writing before any template is edited. That inventory determines whether the move is a patch-level tidy-up or a full migration.

What changes in CKAN for Bootstrap 3 themes

This table compares each CKAN change that affects a custom Bootstrap 3 theme, from the Bootstrap 5 default in CKAN 2.10 to the removal of Bootstrap 3 templates in CKAN 2.11. Read each row against the release your portal runs today and the release you plan to move to. The main takeaway is that the removal is already in effect for any portal that upgrades to 2.11 or later, so the migration cannot wait for a convenient moment.

ChangeImpact on a custom themeAction needed
Bootstrap 5 default (CKAN 2.10)Core templates use Bootstrap 5 markup, so theme overrides written for Bootstrap 3 can render incorrectly.Compare each overridden template with the current core version and confirm the change list in the CKAN release notes.
Bootstrap 3 templates removed (CKAN 2.11)Bootstrap 3 template paths no longer exist, so a theme that depends on them will fail or fall back to core output.Inventory every overridden template and CSS file, then confirm which ones target Bootstrap 3 structures.
CKAN 2.12.0 release (August 26, 2026)The current minor version moves forward, so theme code must track the newest core templates and assets.Confirm compatibility of your theme against 2.12.0 in a test environment before upgrading production.
Maintenance releases 2.11.6 and 2.10.11Patch releases in the same release set carry security and bug fixes for the older minor lines.Apply the latest patch of your running minor version, and confirm which patch your theme was tested against.
Minor release compatibility policyMinor releases may include backwards-incompatible changes, while patch releases do not break compatibility or add features.Plan theme changes as part of minor version upgrades, and test each theme change on every minor release you target.
Template markup and class namesGrid, column, button, alert and navigation classes can change between Bootstrap versions, which affects layout of overridden blocks.Confirm each class-level change against the Bootstrap migration guide and the CKAN release notes rather than relying on memory.
JavaScript data attributesBootstrap 5 changes how components such as modals, dropdowns and collapsibles are initialized, so custom scripts may stop working.Confirm each data attribute change in the Bootstrap migration guide and test interactive components after each change.
Icon and component markupIcon libraries and component structures used in custom snippets may not match the core templates in newer releases.Confirm icon and component markup in the CKAN release notes and replace any markup that core no longer uses.

Where Bootstrap 3 leftovers can hide in the theme layers

The diagram starts at the browser request, which CKAN core renders through its templates and Bootstrap 5 default, then passes through the theme extension's ckan_extends overrides. Each override replaces a core block, so markup copied from an older Bootstrap 3 template can survive inside a block the theme never touched. The asset bundle carries the theme's CSS and JavaScript alongside those of other extensions, which is where class names and selectors collide. Check each layer separately, because a page can look correct while a leftover in one layer still breaks a component.

Bootstrap 3 markup can survive in theme overrides and in shared assets.

Which theme layer to rewrite first

Templates usually break first because Bootstrap 5 renamed or removed classes and attributes that CKAN's Jinja templates and your overrides depend on. Overrides copied from an older theme often render without errors but lose their layout or behavior. Start by listing every template your theme overrides, then compare each one with the core template it extends in your CKAN version.

  • Markup classes: Bootstrap 3 names such as pull-right, label and panel were replaced in Bootstrap 5 by names such as float-end, badge and card. Confirm the full mapping in the Bootstrap 5 migration guide.
  • Data attributes: Bootstrap 5 uses data-bs-toggle and data-bs-target where Bootstrap 3 used data-toggle and data-target, so dropdowns and modals stop responding without any error.
  • Finding old markup: Search the theme directory for col-xs-, pull-, panel, glyphicon, data-toggle and btn-default, then diff each overridden file against its core counterpart.
  • Small overrides: Use {% ckan_extends %} and override only the block you change, so the rest of the template stays inherited from core. The sibling topic on building a custom CKAN theme covers these patterns in detail.

Check each rewritten template on a dataset page, a search page and a form page, since these exercise the most Bootstrap components.

Preparing the theme before you rewrite a single template

Most failed theme migrations start with an unclear picture of what the theme already does. The six checks below connect the work that should happen before any Bootstrap 5 template is touched, so every change can be tested and reversed. Confirm the target CKAN version and every extension version in your own environment before you start.

Inventory every override and asset

List each template file your theme overrides, each snippet it replaces, every static file and every CSS or JavaScript bundle it loads. Note which core CKAN template each override extends, because a file that looks small may replace a large core block. This inventory tells you how much Bootstrap 3 surface area you actually own, and it becomes the checklist you tick off during the rewrite. Record the version of CKAN each override was written against.

Scan for Bootstrap 3 markup

Search templates, CSS and JavaScript for Bootstrap 3 class names such as col-xs-*, panel, label-default, glyphicon and hidden-xs, along with data attributes like data-toggle and data-target, which Bootstrap 5 renamed to data-bs-*. Also check for jQuery plugins that depend on Bootstrap 3 behavior. Each hit is a candidate for a change, and the scan shows which parts of the theme depend on Bootstrap internals rather than on CKAN's own classes.

Build a test environment on the target version

Stand up a non-production CKAN instance on the target minor release with a copy of your theme, your extensions and a representative set of datasets, organizations and users. Because minor releases may include backwards-incompatible changes, this is the only place where a theme rewrite can be trusted before it reaches users. Keep this environment separate from the one you use to inspect the current Bootstrap 3 behavior, so you can compare the two.

Back up the database and file storage

Take a verified backup of the CKAN PostgreSQL database and of the file storage directory that holds uploads, images and other user-provided content. Store it outside the host running the theme, and test a restore into the test environment. Theme work changes templates and static assets, not data, but a rollback path is what makes it safe to try a change on a live site. Also back up the DataStore database if your portal uses it.

List installed extensions and their compatibility

Record every installed extension, its version and the CKAN releases it declares support for. Extensions that ship their own templates, blocks or CSS can break when the base layout changes, and some were written only for Bootstrap 3. Ask each extension's maintainers or check its repository for Bootstrap 5 support, and decide whether to upgrade, replace or accept the extension's current markup before the theme work begins.

Capture baseline screenshots and page checks

Take screenshots of key pages on the current Bootstrap 3 theme, including the home page, dataset search, a dataset page, an organization page, the user dashboard and a form such as dataset creation. Add automated checks that confirm key elements load and that the page returns without errors. These baselines let you compare the rewritten theme against the original on each change and catch layout regressions in responsive views and forms that reviewers may not notice.

How to move the theme to Bootstrap 5 in order

This sequence moves a CKAN theme from Bootstrap 3 markup to the Bootstrap 5 default in a test environment first, with a check and a rollback point at each stage, so production changes only after the theme has been verified. The output is a theme that renders correctly on the target CKAN version and can be restored if the promotion fails.

  1. Confirm the target CKAN version and patch level

    Decide the CKAN minor version you will run after the move and record the current patch release of that minor version. Confirm that the version you are moving from and to are both on the release line your organization supports, using the CKAN release policy. Minor version moves can include backwards-incompatible changes, so treat this as a separate upgrade step, not part of the theme work. Done when the target version and patch level are written in the change record and your current production backup is confirmed as restorable.

  2. Stand up a test environment on the target version

    Build a non-production copy of the portal on the target CKAN version, using a recent copy of the production database and the same search index and file storage configuration. Install the theme extension unchanged first so you can see what breaks before you edit anything. Use the current patch release on every rebuild and keep a record of the versions of CKAN, Python, Solr and PostgreSQL. Done when the portal loads with the unmodified theme and you have a baseline list of pages that render differently or throw errors.

  3. Remove Bootstrap 3 markup from templates

    Your team, or your partner, works through the theme's template overrides and replaces Bootstrap 3 classes and structures with their Bootstrap 5 equivalents, including grid classes, panels, labels, badges, navigation and form markup. Keep overrides as small as possible by extending core templates with ckan_extends and blocks rather than copying whole files. Commit each template group separately so you can revert a single area. Done when no template in the theme references Bootstrap 3 classes and the home page, dataset pages, organization pages and user pages render in the test environment.

  4. Rewrite custom CSS and JavaScript for Bootstrap 5

    Review the theme's stylesheets and scripts against Bootstrap 5 behavior. Bootstrap 5 drops jQuery as a dependency and changes the data attributes and JavaScript API used for components such as modals, dropdowns and collapsible sections, so scripts that call Bootstrap 3 plugins must be rewritten. Check selectors that target removed or renamed classes and update asset bundling so the new files load in the right order. Done when interactive components work in the test environment across the browsers your users rely on, and the browser console shows no errors from the theme.

  5. Confirm extension compatibility

    List every extension installed on the portal and confirm that each one supports the target CKAN version and does not override templates or assets that you have just changed. Check whether any extension ships its own Bootstrap 3 markup and whether a newer release is needed. Where an extension cannot be upgraded, record the gap and decide whether to replace the feature or keep it outside the theme. Done when every extension has a recorded compatibility result, and any open gaps are listed with an owner.

  6. Run the page and regression checks

    Work through the list of key pages from the baseline, including dataset search, dataset create and edit forms, resource pages, the API documentation, user login and the sysadmin pages. Check layout at common desktop and mobile widths, keyboard navigation, form validation messages and accessibility of new interactive components. Record each result against the baseline. Done when every key page has a passing check in the record, and each defect found has been fixed and retested or accepted with an owner and a date.

  7. Promote to production with a tested restore path

    Schedule the production change in a window agreed with the portal owners. Take a fresh backup of the database, the file storage and the search index configuration, and confirm you can restore it into a separate environment before you start. Deploy the theme and the target CKAN version, run the same page checks on production, and keep the rollback steps ready until the checks pass. Done when production passes the key page checks, the restore test is recorded, and the rollback point has been closed or handed over with a note of what was changed.

How to test the Bootstrap 5 theme and roll back safely

Testing a Bootstrap 5 theme is only useful if it covers the pages visitors actually use, so start with a visual regression baseline taken from the Bootstrap 3 theme before any template changes. Capture the home page, a dataset page, an organization page, a group page and a user profile page, at the desktop and mobile widths your portal serves. Compare the new screenshots against that baseline, and review differences in the navigation bar, the dataset search results, resource lists, sidebars, pagination, flash messages and footers. Expect intended differences from Bootstrap 5 classes, and confirm each one by hand rather than accepting or rejecting the whole diff. Keep the baseline with the theme's test artifacts so the next upgrade can reuse it.

Behavior checks matter as much as appearance. Confirm that the navigation menu, the account dropdown, modal dialogs such as confirmation prompts, and the search box all work with the mouse, the keyboard and a screen reader. Bootstrap 5 changed how its JavaScript components are initialized and how data attributes are named, so overridden templates that still use Bootstrap 3 attributes will fail quietly. Test the dataset form and the resource upload form for labels, error messages and focus order. Then walk through the login, logout, password reset and registration flows, including any single sign-on path your portal uses, because a broken template there can lock users out. Ask your team to confirm which browsers and assistive technologies are in scope before testing starts.

Rollback only works if you can return the whole portal to a state that matches itself. The previous theme package, the database and the file storage must be restored together, because a database rolled back without its matching uploads or a theme reverted without its schema changes can produce pages that look correct but serve broken data. Record the exact theme version, the CKAN version and the storage location before the production window opens. Then rehearse a full restore on the test environment, time it, and record each step, including how the Solr index is rebuilt afterward. Confirm with your platform team who holds the backup credentials and who makes the go or no-go decision, so the rollback can happen without waiting for the person who wrote the change.

What makes a Bootstrap 5 theme migration take longer

This table lists the factors that most often change how long a CKAN theme migration from Bootstrap 3 to Bootstrap 5 takes, why each one adds work, and how to reduce it. Use it to size the work by counting each driver in your own theme before asking for a quote. The main takeaway is that the number of overrides, custom styling, and shared templates matters more than the size of the visual redesign itself.

Effort driverWhy it adds workHow to reduce it
Number of template overridesEach overridden Bootstrap 3 template must be rewritten against Bootstrap 5 markup, class names and block structure, and then retested.Count every file under your theme's templates folder, then remove overrides that only change a few lines and can be handled in CSS or snippets.
Custom CSS tied to Bootstrap 3 rulesGrid classes, panel, label and glyphicon styles, and float-based layouts do not map one to one onto Bootstrap 5 utilities and components.Inventory selectors that reference Bootstrap 3 class names, then replace them with Bootstrap 5 equivalents or your own scoped classes.
Custom JavaScript using Bootstrap 3 pluginsModal, tooltip, popover, collapse and dropdown code written against Bootstrap 3 jQuery plugins or data attributes must be rewritten for Bootstrap 5 APIs.List every script that calls a Bootstrap plugin or reads a data-bs attribute, and test each interactive control after the change.
Third-party extensions overriding the same templatesWhen another extension overrides a template your theme also changes, the two sets of changes must be merged and retested together.Check which installed extensions override the same templates, and agree on which extension owns each file before you start rewriting.
Number of languages and translated stringsRewritten templates can move, split or reword text, which affects translation keys, layout length and right-to-left checks.Record the languages you serve and the templates that contain translated strings, then plan a translation review for changed pages.
Number of distinct page typesEach page type (home, dataset, organization, group, user, search, error and custom pages) has its own layout that needs review in every supported viewport.List each distinct page type and its templates, then test the highest-traffic pages first and keep a short regression checklist for the rest.
Responsive and accessibility checksBootstrap 5 changes some responsive and form behavior, so layouts that worked on Bootstrap 3 may need new breakpoint and focus testing.Ask for a defined set of target browsers, devices and accessibility checks in the written scope, and keep the same checks for later releases.

What buyers ask before moving a CKAN theme to Bootstrap 5

How much does moving a CKAN theme to Bootstrap 5 cost?

The cost depends on how much of the theme is written against Bootstrap 3, how many core templates it overrides, and how much custom CSS and JavaScript must be checked against Bootstrap 5 defaults. No public price applies to this work, so ask for a quote built from a written scope. The largest components are usually the template inventory, rewriting markup and class names, updating CSS and JavaScript that relied on Bootstrap 3 behavior, and browser testing of the pages your users visit most. Recurring cost is smaller: retesting the theme after each CKAN patch and minor upgrade. A useful quote separates one-time migration work from any ongoing retainer and lists the pages in scope.

How long does a CKAN Bootstrap 5 theme migration take?

Duration is set by the size of the override set and the number of decisions that need sign-off from brand, content or security owners. A duration cannot be given responsibly without reviewing the theme, so confirm it in the quote. The main drivers are the number of overridden templates and snippets, the volume of custom CSS and JavaScript, any extension templates that still depend on Bootstrap 3 classes, the number of review rounds, and whether a test environment already runs the target CKAN version. Ask for the timeline as milestones tied to review and testing gates, with the environment each gate runs in named.

What does our internal team need to provide during the migration?

Your team supplies access, decisions and knowledge that only it holds. Expect to provide:

  • Read access to the theme repository, the CKAN configuration and a copy of the production data or a representative sample for testing
  • A named owner who can approve brand, layout and accessibility decisions within agreed review windows
  • A list of the pages, user journeys and browsers that matter most to your users
  • Details of any custom extensions, and any changes made directly on the server that are not in version control
  • A staging environment where the theme can be deployed and tested without touching public traffic

Ask the provider to confirm each item in the written scope so that delays caused by missing access are visible early.

Can our own developers migrate the theme without outside help?

Yes, if your developers already know CKAN template inheritance and Bootstrap 5, and they have time to test across the portal's pages. CKAN 2.10 made Bootstrap 5 the default, and CKAN 2.11 removed the Bootstrap 3 templates, so a theme written for Bootstrap 3 will not simply keep working after an upgrade. The work is mostly careful inventory and testing, which internal teams often underestimate. Check whether your team has done a template-level migration before, whether anyone will own the theme after handover, and whether the work can be scheduled without competing with releases. Outside help is most useful for the inventory, the first pass on the highest-traffic templates and a documented handover.

Which CKAN version should we target for a Bootstrap 5 theme?

Target a CKAN minor version that is still supported, then move to the latest patch of that minor. The CKAN release policy supports the latest patch of the current minor version and the previous minor version, and older patch releases lose support once a newer patch is out. CKAN 2.12.0 was released on August 26, 2026, alongside maintenance releases 2.11.6 and 2.10.11. Patch releases do not break backwards compatibility, but minor releases may include incompatible changes, so a theme built on one minor version needs testing before moving to the next. Confirm the current support table in the CKAN release policy before fixing the target, and check each extension against that version.

Do CKAN extensions need to change when the theme moves to Bootstrap 5?

Extensions need changes only if they ship templates, snippets or CSS that use Bootstrap 3 classes or markup, or if they depend on a core template that changed. Check each extension in three places: its own templates and assets, its declared CKAN version support, and its open issues about Bootstrap 5. For example, ckanext-dcat is supported on CKAN 2.10 and 2.11, so confirm its status for any newer release before you upgrade. An extension that is not maintained for the target version may need a fork, a replacement or a small patch, and that work belongs in the quote. Ask the provider to list each extension, its status and the decision for each one.

How is a fixed-scope CKAN theme engagement agreed?

Most DeployOpen engagements are fixed-scope, meaning the scope, deliverables and timelines are agreed in writing before work starts. DeployOpen does not publish a price list, and a quote follows from the written scope. A scope for a theme migration should name the CKAN versions in scope, the templates, pages and browsers covered, the extensions included, the environments involved, the acceptance tests and who signs off each milestone. It should also state what is excluded, such as new features or content work. Ongoing support, upgrades and continuous testing are available as retainers, and those should be quoted separately from the migration.

How DeployOpen scopes and delivers a CKAN theme upgrade

DeployOpen approaches a Bootstrap 3 to Bootstrap 5 theme move as a written, fixed-scope engagement inside the client's own infrastructure. We start by inventorying what the existing theme overrides, then rebuild those overrides against the Bootstrap 5 default that ships with CKAN 2.10 and later, and hand over a documented, testable theme.

How we scope

  • Inventory every Bootstrap 3 template override, CSS rule and JavaScript file in the current theme extension.
  • Confirm the target CKAN minor version, since the Bootstrap 3 templates are removed in CKAN 2.11.
  • Agree in writing which pages, layouts and customizations are in the upgrade and which are excluded.

How we build

  • Rewrite overrides using ckan_extends, blocks and snippets, keeping each override as small as the design allows.
  • Replace Bootstrap 3 class names, grid markup and component markup with their Bootstrap 5 equivalents, page by page.
  • Test dataset, organization, user and home pages on the target CKAN version in a staging environment that mirrors production.

How we hand over

  • Document every changed template, stylesheet and script, with the reason for each change and any remaining known gaps.
  • Provide a checklist of pages and browsers reviewed, so your team can repeat the review after future changes.
  • Walk your developers through the theme structure, the build and the upgrade notes before the engagement closes.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the initial engagement.
  • Retainers can cover review of your theme when CKAN patch or minor releases arrive, so changes are tested before rollout.
  • Ask any provider to confirm how support is priced, what response expectations apply, and who owns the code after handover.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.