Home Forums Basel support forum SVG Logo Image Reply To: SVG Logo Image

#2671

Artem Temos
Keymaster

Hello,

Thank you for contacting us.

The easiest way for you will be:

1. Upload your SVG logo to the server

2. Set up basel child theme

3. Override logo PHP function to get logo not from Theme Settings but set your path manually. Here is the code that you need to place into functions.php file in the child theme

function basel_get_logo() {
	$logo_src = 'http://YOURWEB_SITE/LOGO_IMAGE.svg'
	?>
		<a href="<?php echo esc_url( home_url('/') ); ?>" rel="home"><img src="<?php echo esc_url( $logo_src ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>"></a>
	<?php 
}

Don’t forget to set your actual path to the image.

Regards