So, I am in the process of building a custom theme and would like to take advantage of the Logo feature of Bludit.
However, I can not get it to work on any theme (free ones)
Steps to reproduce
1. Go to the Admin area and select General under Settings and then the last tab is "Logo"
2. Select a logo to upload and upload it
3. Save and refresh your website page and either no logo or the default logo (the Bludit logo)
What I expect to happen is that when you upload a logo that is appears in the designated area for the logo.
Here is the code I am using
Code: Select all
<?php
$file = DOMAIN_UPLOADS_PROFILES.'admin.png';
if( !file_exists(PATH_UPLOADS_PROFILES.'admin.png') ) {
$file = DOMAIN_THEME.'img/logo.svg';
}
echo '<a href="'.$site->url().'" rel="home" class="navbar-brand"><img class="d-inline-block align-top" src="'.$file.'" alt="'.$site->title().'"></a>';
?>
Thanks
Gary