Home / Archive / Override Header Logo with Custom SVG
Duplicate Snippet

Embed Snippet on Your Site

Override Header Logo with Custom SVG

While you can select an SVG image from the customizer for your header logo if you want to use an actual SVG element and not an image element you can override the logo completely with this snippet. Make sure to modify the snippet to include your SVG html.

Code Preview
php
<?php
add_filter( 'totaltheme/header/logo', function( $output ) {
    return '<your custom svg code>';
} );

Comments

Add a Comment