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(5mo ago)24001OSL-3.0PHPCI passing

Since Sep 9Pushed 3mo 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 1mo 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

38

—

LowBetter than 85% of packages

Maintenance75

Regular maintenance activity

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

163d 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

[ethanyehuda/magento2-cronjobmanager

A module for managing scheduled cron jobs from magento's admin panel

3632.5M1](/packages/ethanyehuda-magento2-cronjobmanager)[baldwin/magento2-module-url-data-integrity-checker

Magento 2 module which can find potential url related problems in your catalog data

281773.3k](/packages/baldwin-magento2-module-url-data-integrity-checker)[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[yireo/magento2-googletagmanager2

Add Google Tag Manager to Magento

167930.4k5](/packages/yireo-magento2-googletagmanager2)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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