Skip to main content

Create a Joomla template: The complete guide 2026

Want to create a Joomla template? I'll show you how, from choosing a framework to writing the code. With Bootstrap 5 for Joomla 5.x.

FHFinn Hillebrandt
Blogging
Create a Joomla template: The complete guide 2026
Links marked with * are affiliate links. If you buy something through one of these links, we earn a commission.

You want to create a Joomla template, but you don’t know where to start?

The good news:

With Joomla 5.x, template development has become much easier. Bootstrap 5.3 is already built in, backward compatibility with Joomla 4 saves you migration stress, and modern frameworks like Astroid or Helix Ultimate make your life easier.

That said:

Choosing the right approach can be overwhelming. Framework or custom development? Which files do you really need? And why do template overrides keep breaking after updates? (Spoiler: It annoys everyone.)

If you’re still unsure whether Joomla is the right CMS for your project at all, take a look at my CMS comparison. In this guide I show you everything you need to know. From the minimal template structure through framework comparisons to performance and SEO optimizations.

TL;DRKey takeaways
  • Minimal template structure: index.php + templateDetails.xml + css/template.css are enough for a functional template
  • Framework choice: Helix Ultimate for beginners, Astroid for flexibility, Gantry for developer control
  • Joomla 5 is upgrade-friendly: Templates from Joomla 4 work seamlessly thanks to the Backward Compatibility Plugin

Before the code: Planning your template with pen and paper

Before you write a single line of code, you should plan your template conceptually. It sounds old-fashioned, but it saves you hours of frustration. In the past I often just started right away and then noticed that I had forgotten important areas. A quick sketch on paper or in a tool like Figma shows you immediately whether your layout makes sense.

Define layout areas

Every Joomla template consists of logical areas that later serve as module positions. The classic breakdown looks like this:

  • Header: Logo, main navigation, search field if needed
  • Content/Component: The main content (articles, categories, etc.)
  • Sidebar(s): Additional modules like menus, news boxes, ads
  • Footer: Copyright, links, contact info

Sketch these areas roughly, with dimensions (e.g., sidebar 300px, content flexible). Think about it as you go: Which modules should appear where? Do you need one or two sidebars? Should the footer have several columns? Making these decisions now is much easier than later in the code.

Plan module positions in advance

The module positions you define in your sketch end up in the templateDetails.xml later. The more thought you put in here, the more flexible your finished template will be. Typical positions are:

  • header, logo, search (header area)
  • menu, breadcrumbs (navigation)
  • sidebar-left, sidebar-right (sidebars)
  • above-content, below-content (before/after main content)
  • footer-1, footer-2, footer-3 (multi-column footers)

Joomla 5 vs. Joomla 4: What you need to know for template development

Before you get started, you should understand which Joomla version you’re using. Joomla 5.x came out in October 2023 and brings some important improvements for template developers. And it does so without the migration hell that Joomla 3 to 4 was. On one project back then I spent three days migrating a template. With 5.x? Two hours.

The most important changes in Joomla 5

Four improvements are especially relevant for you as a template developer:

  • Bootstrap 5.3.2: Upgrade from Bootstrap 5.0 (Joomla 4) to 5.3.2. More modern, responsive templates with less effort.
  • PHP 8.1+ minimum: Better performance and access to modern PHP features.
  • Fontawesome 6.4: Updated icon library with far more icons (finally!).
  • Web Asset Manager: Extended JavaScript import maps support for better asset management.

According to the official Joomla announcement, Cassiopeia remains the default frontend template. Customizations should work, but I recommend testing in a development environment.

Backward compatibility: Your safety net

Joomla 5 has a Backward Compatibility Plugin that supports Joomla 4 extensions and templates seamlessly. This plugin stays active until Joomla 6. That gives you about 2 years to update. In Joomla 6, J4 compatibility will be removed, so don’t plan too short-term.

The Joomla Usage Stats 2025 report shows the following version distribution:

  • Joomla 3.x: about 60% (dominant despite end of life)
  • Joomla 4.x: about 13%
  • Joomla 5.x: about 15.7% (fast growth since release)
  • Older versions: about 11%

Framework or custom development?

The biggest decision in template development: Do you use a framework or develop completely custom? Both approaches have pros and cons. The choice depends on your project, your skills, and the time available.

  • Faster start: Drag and drop builders shorten development time considerably
  • Built-in features: Mega menus, responsive control, off-canvas menus out of the box
  • Community support: Large user communities offer help and tutorials
  • Regular updates: Frameworks are actively maintained and adapted to new Joomla versions
  • Code overhead: Frameworks often load more CSS/JS than you actually need
  • Limited control: You're tied to the framework's logic
  • Learning curve: Every framework has its own concepts you have to understand first
  • Vendor lock-in: Switching between frameworks is laborious

The best Joomla frameworks compared

I analyzed the four leading Joomla frameworks. Here’s the comparison (based on community feedback and official features):

Framework
Best for
Main strength
Learning curve
Price
AstroidModern projectsFlexibility, Bootstrap 5, supportMediumFree
Helix UltimateBeginnersSimplicity, SP Page BuilderLowFree
GantryDevelopersControl, Particle SystemHighFree
T4Complex projectsExtensive UI, layout builderMedium to highFree

Astroid Framework: The flexible all-rounder

Astroid is developed by Joomdev and is considered the most flexible framework on the market. It supports Bootstrap 5, has a drag and drop layout builder, and comes with an Advanced Mega Menu built in.

A user in the ThemeXpert framework comparison sums it up: “ASTROID Framework is the most flexible, Joomla friendly, powerful framework out there.”

Helix Ultimate: The beginner’s friend

Helix Ultimate by JoomShaper is perfect for newcomers to template development. It has an integration with SP Page Builder (drag and drop), over 40 modules, and clean, minimal code.

One user says: “Helix Ultimate is the most flexible and clean code from everything that is in the market. And it’s free. If you have CSS skills, you can make anything on it.”

Helix’s strength lies in its simplicity: Fewer ready-made features means more flexibility for customization. If you know CSS, you can get almost anything done with it.

Gantry Framework: Maximum developer control

Gantry by RocketTheme is aimed at experienced developers who want granular control over every template detail. The Particle System makes modular development possible, and the Visual Menu Editor takes a lot of work off your hands with mega menus.

Community feedback: “The Gantry Framework is the best for Developers seeking control over the template.”

T4 Framework: The extensive layout master

T4 by JoomlArt is the successor of the outdated T3 Framework. It has a modern UI in the admin panel, an extensive layout builder, and runs with Joomla 3, 4, and 5.

T4 is ideal for complex projects with many layout variants. The backend isn’t as comfortable as Gantry’s or Helix’s, though, which makes the learning curve steeper.

My framework recommendation

Which framework you should pick depends entirely on your project. Here’s my cheat sheet from years of Joomla practice:

  • For learners: Helix Ultimate. Best balance of simplicity and features.
  • For quick projects: Astroid Framework. Flexible and well documented.
  • For maximum control: Gantry. Particle System and granular settings.
  • For custom development: Start from Cassiopeia. Joomla’s default template as a clean base.

If you’re wondering how Joomla stacks up against WordPress (the market leader with a 58.9% market share among websites with a known CMS), read my article What is WordPress? for a side-by-side comparison.

The minimal template structure: What you really need

Before we get to complex frameworks, let’s clear up the basics. Joomla template development can seem fiddly, but at its core it isn’t. A functional Joomla template needs only three files.

Yes, three.

No magic involved.

Let’s start with the minimal structure:

mynewtemplate/
├── css/
│   └── template.css
├── images/
├── index.php
└── templateDetails.xml

The required files

You have to create three files in any case:

  • index.php: Core template file with HTML structure and PHP logic.
  • templateDetails.xml: Manifest file with metadata, installation instructions, and module positions.
  • css/template.css: Stylesheet for your template.

There are also optional but recommended files:

  • error.php (custom error handling for 404 pages)
  • component.php (alternative layout file for component views)
  • offline.php (page shown in maintenance mode)
  • joomla.asset.json (asset management for Joomla 4+ with CSS/JS dependencies)

The templateDetails.xml in detail

The templateDetails.xml is the most important file. Without it, Joomla doesn’t recognize your template. Here’s a complete example:

<?xml version="1.0" encoding="utf-8"?>
<extension type="template" client="site">
    <name>mynewtemplate</name>
    <version>1.0</version>
    <creationDate>2025-12</creationDate>
    <author>Your name</author>
    <authorEmail>email@example.com</authorEmail>
    <description>Template description</description>

    <!-- Files and folders -->
    <files>
        <filename>index.php</filename>
        <filename>templateDetails.xml</filename>
        <folder>css</folder>
        <folder>images</folder>
    </files>

    <!-- Module positions -->
    <positions>
        <position>header</position>
        <position>sidebar</position>
        <position>footer</position>
    </positions>
</extension>

The index.php: The heart of your template

The index.php defines the HTML structure of every page. Here’s a minimal but functional example for Joomla 5:

<?php
defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;

$app = Factory::getApplication();
$wa  = $this->getWebAssetManager();

// Load CSS/JS
$wa->useStyle('template.custom')
   ->useScript('template.custom');
?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>">
<head>
    <jdoc:include type="metas" />
    <jdoc:include type="styles" />
    <jdoc:include type="scripts" />
</head>
<body>
    <header>
        <jdoc:include type="modules" name="header" style="html5" />
    </header>

    <main>
        <jdoc:include type="component" />
    </main>

    <footer>
        <jdoc:include type="modules" name="footer" style="html5" />
    </footer>
</body>
</html>

Important jdoc includes explained

The most important jdoc include types you’ll run into in every template:

  • type="metas": Inserts meta tags and the page title.
  • type="styles": Loads all CSS files.
  • type="scripts": Loads all JavaScript files.
  • type="component": Renders the main content (articles, categories, etc.).
  • type="modules" name="...": Renders all modules at the specified position.

Web Asset Manager for Joomla 5

Joomla 4 and 5 use the Web Asset Manager for CSS/JS. Create a joomla.asset.json in the template root:

{
  "$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json",
  "name": "mynewtemplate",
  "version": "1.0.0",
  "assets": [
    {
      "name": "template.custom",
      "type": "style",
      "uri": "template.css"
    }
  ]
}

This file defines assets with dependency management. You can register several CSS/JS files and control their loading order.

Setting up your development environment: XAMPP vs. Docker

Before you get started, you need a local development environment. There are two options: XAMPP (simple, but limited) and Docker (professional, but more complex).

XAMPP: The classic for local development

XAMPP stands for Cross-platform (X), Apache, MySQL, PHP, Perl. A complete test server package in one installer. It runs on Windows, Mac, and Linux.

Don’t worry: Installation is not rocket science and takes less than 15 minutes.

Installation in 7 steps:

  1. Download XAMPP from apachefriends.org
  2. Windows: Install it in C:\xampp (NOT in C:\Program Files)
  3. Download Joomla from Joomla.org and unzip the ZIP
  4. Copy the unzipped folder to xampp/htdocs/ and rename it (e.g., myjoomla)
  5. Open the XAMPP Control Panel and start Apache + MySQL
  6. Browser: Open localhost/phpmyadmin and create a new database (e.g., joomla_db)
  7. Browser: Open localhost/myjoomla and follow the Joomla installer

Installer finished? Great. Grab a coffee before you tackle the database.

Database credentials for the local installation:

  • Database Type: MySQL
  • Hostname: localhost
  • Username: root
  • Password: (leave empty)
  • Database Name: joomla_db

Docker: The professional alternative

Docker offers isolated environments, consistent setups across platforms, and easy sharing of development environments. Ideal for teams or if you want to test several Joomla versions in parallel. A bit more cumbersome at first, but cleaner in the long run.

version: '3'
services:
  joomla:
    image: joomla:latest
    ports:
      - "8080:80"
    environment:
      JOOMLA_DB_HOST: mysql
      JOOMLA_DB_PASSWORD: secret
    volumes:
      - ./joomla:/var/www/html
  mysql:
    image: mysql:8.0
    environment:
      MYSQL_ROOT_PASSWORD: secret
      MYSQL_DATABASE: joomla

Start the containers with:

docker-compose up -d

Joomla is then available at localhost:8080.

Additional tools for template development

The server setup alone isn’t enough. I use these tools on every template project:

  • Git: Version control for template changes.
  • VS Code: Code editor with PHP extensions and Joomla snippets.
  • Composer: PHP dependency management.
  • npm: JavaScript dependencies and SCSS compilation.
  • Browser DevTools: Chrome/Firefox developer tools for responsive testing.
  • Regex tester: My free tool helps you test regular expressions for template patterns.

Common beginner mistakes and how to avoid them

Template development is complex, and even experienced developers make mistakes. I’ve seen templates that broke with every Joomla update. Here are the most common pitfalls. And how to get around them.

Template override problems

Template overrides are powerful but error-prone. They often break after Joomla or extension updates because the core output files change. Your overrides are then based on outdated versions.

You might be thinking: “Why use overrides at all, then?”

Because they’re the only clean way to customize core files without losing update safety. You just have to know where the pitfalls are.

The most common causes of broken overrides:

  • Joomla updates change core output
  • Extension updates modify view files
  • Wrong file paths (override in the wrong folder)
  • Syntax errors (a missing semicolon stops the entire override)
  • Framework conflicts (Helix/Gantry can collide with overrides)

The fix according to the Wix Media Group override guide:

  1. Enable error reporting in Joomla (‘Configuration > System > Error Reporting: Maximum’)
  2. Open the browser developer console and look for errors
  3. Switch back to the Cassiopeia template: If the problem disappears, the template is the cause
  4. Test overrides after every update
  5. Use version control (Git) to track changes

Coding and syntax errors

Unclosed HTML tags, PHP syntax errors, and invalid JavaScript are the classics. A single missing semicolon can cripple your entire template. (I once searched for 2 hours until I found the damn semicolon.)

Here’s how you avoid these errors:

  • Check the HTML structure with the W3C validator
  • Enable a PHP linter in VS Code
  • Check the browser developer console for JavaScript errors
  • Keep code formatting consistent (Prettier/PHP CS Fixer)

Formatting and code quality errors

Inline styling and inline JavaScript are tempting, but fatal. They make your code unmaintainable and break with overrides.

Bad practices according to the Gavick template problem guide:

  • Inline styling (hard to maintain, inconsistent)
  • Inline JavaScript (DOM-dependent)
  • File names with spaces
  • Missing alt tags on images (bad for SEO)
  • Wrong H1 tag usage (multiple H1s per page)

Do this instead:

  • Central CSS in template.css
  • JavaScript in separate files
  • Use semantic HTML
  • Follow accessibility standards (WCAG 2.1 AA)

JavaScript best practices

Modifying core JavaScript objects (jQuery, MooTools, the Joomla object) is a no-go. If you absolutely have to adapt a core object, create a subclass.

The recommended approach:

  • Load JavaScript in the view template (not in the view class)
  • Use your own namespaces (to avoid conflicts)
  • Register assets via the Web Asset Manager

Media/asset management

Storing media directly in the extension folder makes overrides hard. Store media in the /media/ folder instead and load it via the JHtml class (image, script, stylesheet methods).

Performance and SEO: Getting your template fit for Google

A beautiful template is useless if it loads slowly or gets ignored by Google. Joomla has many performance and SEO features. You just have to use them. Also read my guide on how to improve your Google rankings for more optimization tips.

Optimizing Core Web Vitals

Google evaluates websites based on Core Web Vitals. Three metrics are decisive (more details in my Core Web Vitals guide):

  • LCP (Largest Contentful Paint): Under 2.5 seconds (main content loads).
  • FID (First Input Delay): Under 100 ms (interactivity).
  • CLS (Cumulative Layout Shift): Under 0.1 (layout stability).

Optimizations according to the Joomla Core Web Vitals guide:

  • Joomla caching extension: JCH Optimize reduces server response time.
  • Implement a CDN: Cloudflare speeds up asset delivery.
  • Lazy loading: Joomla 5.1+ has built-in lazy loading for images.
  • Minify CSS/JS: Remove unnecessary characters.
  • Gzip compression: The template should support Gzip.

Image compression and responsive images

Images are often the biggest performance killer. Compress images before uploading with tools like TinyPNG or Image Compressor. Use responsive images (different sizes for different devices). Joomla 5.1+ has built-in lazy loading for images and media. Enable it in the global settings.

Enabling SEO-friendly URLs

Joomla can transform URLs from example.com/index.php?option=com_content&id=1 into example.com/about-us. That’s better for SEO and for users. My free SEO check helps you review your URL structure and other on-page factors.

Setup in 6 steps:

  1. Open ‘System > Global Configuration > SEO Settings’
  2. Set Search Engine Friendly URLs to “Yes”
  3. Use URL Rewriting: “Yes” (removes index.php)
  4. Rename htaccess.txt to .htaccess
  5. Add Suffix to URL: Optional (add .html)
  6. Canonical Tags: “Yes” (prevents duplicate content)

Structured data and schema markup

Structured data helps Google understand your content better. That increases the chance of rich snippets in the search results. My JSON-LD schema generator creates the right schema markup for different content types.

You have two options for implementation. Via an extension (Google Structured Data, EFSEO) or manually (JSON-LD in index.php or override files).

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "Create a Joomla template",
  "author": {
    "@type": "Person",
    "name": "Finn Hillebrandt"
  }
}
</script>

These schema types are the most relevant for Joomla websites:

  • Articles (blog articles)
  • Breadcrumbs (navigation)
  • Products (e-commerce)
  • Events

Costs: Premium templates vs. custom development

Template development can be free. Or it can cost thousands of euros. Here’s the price range so you can plan realistically.

Free options

Four free options you can start with right away:

  • JoomStarter: Free blank template with code comments.
  • Helix Ultimate: Free framework with professional features.
  • Astroid Framework: Free, open source.
  • Gantry: Free framework from RocketTheme.

Interested in free options for other CMSs? Take a look at my overviews of free WordPress themes and the best WordPress themes.

Premium templates

Premium templates offer support, regular updates, and more customization options.

Provider
Price
Features
Gavick€120 (one-time)Unlimited websites, lifetime usage
JoomlArt30-65% discount vs. buying individually250+ templates + extensions
YOOthemePrice on request100+ professional templates

Custom template development (DACH region: Germany, Austria, Switzerland)

Concrete costs according to Joomlainfo.ch:

  • Simple templates: from €2,000 (development time: 5-14 days)
  • CMS setup + simple component: from €800
  • Extensive components: from €1,500
  • Online shop: from €5,000
  • Maintenance contracts: from €40 per month

Joomla market share 2026: Is Joomla still relevant?

The uncomfortable truth. Joomla is losing market share. According to W3Techs, only 1.7% of all websites with a known CMS still use Joomla. That equals about 1.2% of all websites worldwide. The trend is declining. From 8.4% (2014) to 5.5% (2018) to 1.7% (2026). WordPress, Shopify, Wix, and Squarespace are gaining, while Joomla shrinks.

Germany: Joomla is stronger than globally

In Germany, Joomla’s market share is about 5%. Significantly higher than worldwide. Joomla is more popular in the German-speaking region, especially among developers and agencies.

Where Joomla still dominates

Joomla has niches where it is stronger than WordPress:

  • Multilingual websites (built-in multilingual support)
  • User management (advanced access control lists)
  • Government and nonprofits (security and flexibility)
  • Education sector (complex user hierarchies)

Community and support

Despite a declining market share, the Joomla community is active: Over 124 million downloads (cumulative), almost 2 million active users, over 740,000 registered forum users, about 8,000 extensions in the Joomla Extensions Directory.

Starter templates: The fastest way to a functional template

Why develop from scratch when there are good starter templates? Here are the best blank templates for Joomla 5.

JoomStarter: The learning champion

JoomStarter by Kevin’s Guides is a stripped-down version of Cassiopeia with extensive code comments. Perfect for beginners who want to understand how Joomla templates work.

The features at a glance:

  • Stripped-down version of Cassiopeia
  • Extensive code comments (explains almost every line)
  • Bootstrap 5.3
  • Basic Bootstrap grid layout
  • Sidebar + several module positions
  • ZIP download and installation via Extension Manager

GitHub: github.com/kevinsguides/JoomStarter

More starter templates

Besides JoomStarter, there are a few more solid blank templates:

  • OrdaSoft Joomla Blank Template: HTML5, Bootstrap, Font Awesome support.
  • JA Simpli: Lightweight, no framework, clean code.
  • WT Blank Template: Helix Ultimate Framework, SP Page Builder 5, 50+ extra addons.
  • JoomLead Blank: Gantry 5, Joomla 6 ready, performance-optimized.

My recommendation

My cheat sheet for choosing a starter template:

  • For learners: JoomStarter (best documentation).
  • For quick projects: Helix Ultimate or Astroid Framework.
  • For maximum control: Start from Cassiopeia as a base.

German-language resources and community

The German Joomla community is active and helpful. Here are the best resources for German-speaking developers.

Official documentation

German tutorial series

REDIM Joomla Templates erstellen, Templates4All tutorial, IONOS Digital Guide.

Community support

Conclusion: Your path to the perfect Joomla template

Joomla template development is easier in 2026 than ever. With Joomla 5 you get Bootstrap 5.3, modern PHP features, and backward compatibility. Frameworks like Astroid, Helix Ultimate, and Gantry speed up your workflow, while starter templates like JoomStarter make getting started easier.

The choice between a framework and custom development depends on your project: Helix Ultimate for beginners, Astroid for flexibility, Gantry for control. If you want maximum performance, develop from scratch. But plan more time.

Don’t forget performance and SEO: Optimize Core Web Vitals, enable SEO-friendly URLs, and implement structured data. And test, test, test. Especially after Joomla updates, which can break template overrides. My SEO tips help you optimize your template for search engines.

Joomla’s market share is shrinking, but the community is alive. If your project uses Joomla’s strengths (multilingual, user management), it’s still a solid choice in 2026.

Done!

You now have everything you need to build your own Joomla template. If you’re interested in web development in general, also take a look at my guides on creating a website and starting a blog. Good luck with your template!

Frequently asked questions

Which Joomla framework is best for beginners?
Helix Ultimate is ideal for beginners. It has a low learning curve, clean code, and is free. If you know CSS, you can build almost anything with it. For maximum flexibility, Astroid Framework is a good alternative.
Will my Joomla 4 template work with Joomla 5?
Yes, in most cases. Joomla 5 comes with a Backward Compatibility Plugin that supports Joomla 4 templates seamlessly. Going from Joomla 4 to 5 is a simple upgrade, not the complex migration that Joomla 3 to 4 was. Still, you should test your template in a test environment.
How long does it take to create a custom Joomla template?
Development time varies a lot: Simple templates take 5-14 days, and complex templates can take several weeks. For absolute beginners with a good tutorial, a functional base template is doable in 6-8 hours.
Which files do I need at minimum for a Joomla template?
For a working template you only need three files: index.php (main template), templateDetails.xml (manifest file), and css/template.css (stylesheet). error.php, component.php, and offline.php are optional but recommended.
How much does it cost to develop a Joomla template?
Ready-made premium templates start at €100 per year. Custom template development starts at around €2,000 in the DACH region (Germany, Austria, Switzerland). Maintenance contracts cost from €40 per month. There are also plenty of free options like JoomStarter or Helix Ultimate.
Why do my template overrides break after Joomla updates?
Template overrides often break because new Joomla versions or extension updates change the core output files. Your overrides are based on older versions and are no longer compatible. The fix: Enable error reporting, test after every update, and keep overrides minimal.
Should I use XAMPP for my live website?
No, never. XAMPP is meant for local development only and has security holes. For live websites you need a professional hosting provider with optimized server configurations, SSL certificates, and regular backups.
Is Joomla still relevant in 2026?
Joomla is relevant, but with limited reach. Its global market share is 1.7% among websites with a known CMS and about 1.2% of all websites. In Germany it is about 5%. Joomla is especially strong in niches like multilingual websites, user management, and government projects. For new projects you should weigh WordPress vs. Joomla.
FH

Finn Hillebrandt

SEO expert and blogger

Finn Hillebrandt is the founder of Blogmojo and an SEO expert with 15+ years of experience.

He has been an online entrepreneur since 2011 and started Blogmojo in 2016. It has grown into one of the most-visited German blogs about SEO, WordPress, and blogging, with more than 1,000,000 visitors a year.

Finn has written 140+ articles on blogging, WordPress, and SEO. The articles on blogmojo.com are English translations of them.

Follow Finn on Instagram and Threads.