PHPackages                             yireo/magento2-theme-by-route - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. yireo/magento2-theme-by-route

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

yireo/magento2-theme-by-route
=============================

Assign a specific theme to specific routes

1.1.2(8mo ago)24551OSL-3.0PHPCI passing

Since Sep 9Pushed 7mo agoCompare

[ Source](https://github.com/yireo/Yireo_ThemeByRoute)[ Packagist](https://packagist.org/packages/yireo/magento2-theme-by-route)[ Fund](https://www.paypal.me/yireo)[ GitHub Sponsors](https://github.com/yireo)[ RSS](/packages/yireo-magento2-theme-by-route/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (7)Dependencies (4)Versions (8)Used By (0)

Yireo\_ThemeByRoute
===================

[](#yireo_themebyroute)

**Magento 2 module to allow a file `app/etc/theme-by-route.json` to determine which theme needs to be loaded for which route.**

Installation
------------

[](#installation)

```
composer require yireo/magento2-theme-by-route
bin/magento module:enable Yireo_ThemeByRoute
```

Configuration
-------------

[](#configuration)

Create a file `app/etc/theme-by-route.json` similar to the following:

```
{
  "Loki/luma": [
    "cms/index/index"
  ]
}
```

Now, the `Loki/luma` theme is applied to all pages.

If you want to control under which circumstances which theme is applied, there is an advanced syntax as well:

```
[
  {
    "scope_type": "website",
    "scope_code": "default",
    "theme": "Loki/luma",
    "pages": [
      "cms/index/index"
    ]
  }
]
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance62

Regular maintenance activity

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~14 days

Total

7

Last Release

260d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1373981?v=4)[Yireo](/maintainers/yireo)[@yireo](https://github.com/yireo)

---

Top Contributors

[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (44 commits)")

### Embed Badge

![Health badge](/badges/yireo-magento2-theme-by-route/health.svg)

```
[![Health](https://phpackages.com/badges/yireo-magento2-theme-by-route/health.svg)](https://phpackages.com/packages/yireo-magento2-theme-by-route)
```

###  Alternatives

[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1015.1k29](/packages/loki-magento2-components)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

69362.0k](/packages/run-as-root-magento2-prometheus-exporter)[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.5M1](/packages/fastly-magento2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50406.2k23](/packages/dotdigital-dotdigital-magento2-extension)[buckaroo/magento2

Buckaroo Magento 2 extension

32426.0k8](/packages/buckaroo-magento2)[fishpig/magento2-wordpress-integration

Securely integrate WordPress and Magento 2.

83374.7k7](/packages/fishpig-magento2-wordpress-integration)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
