This module helps you to set css class in body depends on header user agent, device.
Configuration module:
- User agent (Browser) admin/config/system/user-agent
- Chrome
- Firefox
- Opera
- Safari
- Trident
- etc. ability to add any browsers by trigger from Header User-Agent:
- Device (Phone, Table, etc) admin/config/system/device
- Android
- iPhone
- iPad
- Blackberry
- Windows Phone
- etc. ability to add any devices by trigger from Header User-Agent:
- Responsibility (Frontend/Backend) admin/config/system/provide
It is possible to select a method for adding a class in body by Frontend-js (by default) and Backend-php (Advanced need to disable "internal page cache" module and only keep "dynamic page cache" enabled.)
An example Header -> User Agent:
- Chrome
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/60.0.3112.90 Safari/537.36
Project information
- 90 sites report using this module
- Created by artsays on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 8.x-6.x-dev updated 17 Feb 2024 at 13:14 UTC