3545283
The SVG Logo module allows Drupal themes to use SVG code instead of traditional image logos, with live preview and validation in theme settings.
Features
- Replace theme image logos with scalable SVG code
- Live preview while editing SVG markup in admin interface
- Automatic SVG validation and sanitization for security
- Seamless integration with Drupal's system branding block
- No additional configuration required - works out of the box
- Compatible with all themes that use the standard branding block
Post-Installation
After enabling the module, go to Appearance > Settings > [Your Theme] and look for the "SVG Logo Settings" section. Check "Use SVG Logo", paste your SVG code, and save. The SVG will automatically replace your theme's regular logo in the branding block.
Additional Requirements
This module only requires Drupal core. The PHP DOM extension is needed for SVG validation (usually included with PHP by default).
Recommended modules/libraries
None required. This module works independently and integrates with any theme that uses Drupal's standard system branding block.