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.
- 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 |
|---|---|---|---|---|
| Astroid | Modern projects | Flexibility, Bootstrap 5, support | Medium | Free |
| Helix Ultimate | Beginners | Simplicity, SP Page Builder | Low | Free |
| Gantry | Developers | Control, Particle System | High | Free |
| T4 | Complex projects | Extensive UI, layout builder | Medium to high | Free |
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.xmlThe 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:
- Download XAMPP from apachefriends.org
- Windows: Install it in C:\xampp (NOT in C:\Program Files)
- Download Joomla from Joomla.org and unzip the ZIP
- Copy the unzipped folder to xampp/htdocs/ and rename it (e.g., myjoomla)
- Open the XAMPP Control Panel and start Apache + MySQL
- Browser: Open localhost/phpmyadmin and create a new database (e.g., joomla_db)
- 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: joomlaStart the containers with:
docker-compose up -dJoomla 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:
- Enable error reporting in Joomla (âConfiguration > System > Error Reporting: Maximumâ)
- Open the browser developer console and look for errors
- Switch back to the Cassiopeia template: If the problem disappears, the template is the cause
- Test overrides after every update
- 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:
- Open âSystem > Global Configuration > SEO Settingsâ
- Set Search Engine Friendly URLs to âYesâ
- Use URL Rewriting: âYesâ (removes index.php)
- Rename htaccess.txt to .htaccess
- Add Suffix to URL: Optional (add .html)
- 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 |
| JoomlArt | 30-65% discount vs. buying individually | 250+ templates + extensions |
| YOOtheme | Price on request | 100+ 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
- Joomla.de: German community website.
- Joomla documentation (German): docs.joomla.org/Portal:Template_Development/de.
German tutorial series
REDIM Joomla Templates erstellen, Templates4All tutorial, IONOS Digital Guide.
Community support
- Joomla.de forum: Active German-language community.
- Advent calendar tutorials: Building templates part 1.
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!






