Force render theme
Security covered
Drupal 10–11
This module allows you to specify a particular theme to be used when rendering an entity's view display. This is useful for scenarios like previewing content with different themes or ensuring back-office content uses a front-office theme.
This module allows forcing the use of a specific theme when rendering an entity view display.
Usage
- Enable the `force_render_theme` module
- Go to a view display configuration: Structure → Content types → [Type] → Manage display → [View mode]
- In the "Theme settings" section, select the theme to use for this view display
- Save the configuration
The entity will now be rendered using the selected theme instead of the default one.
Use cases
This module is particularly useful for:
- Rendering entities in the back-office using the front-office theme
- Previewing content with different themes
- Using specific themes for certain view modes (teaser, full, etc.)
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.