Hi,

Can anyone tell me why is a logo not showing in a custom theme? $logo variable is empty, where should be defined? If i change the them to graland it shows up. Does not make sence to me.

Thanks

Comments

vikramy’s picture

Is your logo in the same folder of your theme?

Check at admin/build/themes/settings/CUSTOM_THEME_NAME.

I think you can easily figure it out here..

vojnar’s picture

The upload folder is defined in the admin's file system upload link.
The link to the logo is defined in the logo section.

This is the structure:
file
-logo.png
themes
-page.tpl.php
-etc

Thanks

vojnar’s picture

I'm using Color.module: Next generation and $logo was not defined on page.tpl.php.

So I had to add these lines into the header sort of a hack to be able to upload and present my own custom logo:

<?php 
    $theme_settings['theme_settings']=(variable_get('theme_settings', array()));
    $logo = $base_url."/".$theme_settings['theme_settings']['logo_path'];    
    ?>

Keywords:$logo missing, $logo empty, $logo not defined, logo is missing, $logo variable

I hope it may help someone!

Thanks,
Gabor Vojnar