yireo/magento2-theme-by-route

Assign a specific theme to specific routes

Fund package maintenance!
yireo
www.paypal.me/yireo

Installs: 125

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 1

Type:magento2-module

1.0.3 2025-09-30 09:29 UTC

This package is auto-updated.

Last update: 2025-09-30 09:29:35 UTC


README

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

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

Configuration

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

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