Instead of disabling the logo on your Drupal 7 theme, you may choose to switch out the stock logo with your own custom company logo. This article will show you how to do this in the Global Settings. Enabling the Drupal 7 global settings to allow you to use your custom logo is simple to do with the following steps.

Setting up a custom logo in Drupal 7:

  1. Log into your Drupal 7 Admin panel.
  2. Using the top menu area, click on the Appearance option.
    _main-dashboard-appearance
  3. This will bring up the themes page where it lists all themes installed within Drupal 7. Locate the Settings tab at the upper right corner of the screen and click it.
    appearance-theme-settings-tab
  4. This brings you to the main Appearance page. You will see Global Settings followed by the name of all enabled themes as a top menu bar. To set the option globally, click on the Global Settings option. To set it for a particular theme, simply click on the name of the desired theme. This will bring you to the settings page.
  5. You will then need to locate the Logo image settings section on the page. Uncheck the box labeled Use the default logo and a few new fields will appear. These are Path to custom logo and Upload logo. Use the Browse button and upload your logo. (It will appear in the Path field after saving)

    Note that not all themes support the global settings. If that is the case for your theme, simply choose the theme name at the top instead of Global Settings to go to the settings for that particular theme. Then you willl be able to turn off the logo for that theme.

    appearance-theme-custom-logo
  6. Click on the Save Configuration button at the bottom of the page to save the change. You can see the effects of uploading a custom logo in the before and after screenshots below.
    Before After
    custom-logo-before custom-logo-after
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Comments

Post a comment
n/a Points
2014-03-03 7:05 am

i cant upload the image when i upload the image then error can be genrate like this :

  • The file a.jpg could not be saved, because it exceeds 80 MB, the maximum allowed size for uploads.
  • The logo could not be uploaded.

so how can i solve ?

Staff
5,444 Points
2014-03-03 11:54 am
Hello priyank prajapati,

Thank you for your question. This error is usually caused by a PHP setting, that you can adjust on your server.

Here is a guide on how to update your local php settings.

You will want to increase the value for the upload_max_filesize setting.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul
n/a Points
2014-03-24 1:55 am

Thnks for reply...

its fool help for me

thank u so much..

i hope you can give me your best help for nexr time

Staff
10,078 Points
2014-03-24 12:21 pm
Hello priyank prajapati,

You are most welcome, please do not hesitate to ask us any further questions.

Kindest Regards,
Scott M
n/a Points
2014-03-25 1:04 pm

Hi There,

i tried to upload an image as per your instruction and received the following error message: 

  • Warning: move_uploaded_file(temporary://RH_logo.jpg) [function.move-uploaded-file]: failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in drupal_move_uploaded_file() (line 1636 of/home/restorehope/www/www/includes/file.inc).
  • Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpByz4If' to 'temporary://RH_logo.jpg' indrupal_move_uploaded_file() (line 1636 of /home/restorehope/www/www/includes/file.inc).
  • File upload error. Could not move uploaded file.

Can you tell me what I need to do please?

 

thanks,

Sinty 

Staff
5,603 Points
2014-03-25 3:15 pm
Hello Sinty,

It sounds like the temporary folder Drupal is trying to upload your logo to it doesn't have the correct permissions to, or possibly you have PHP Safe Mode on. Unfortunately looking at your directory structure, it doesn't seem like you're hosting your account with us.

You would need to ensure that the temporary folder that Drupal is trying to upload to, it has access to. After some searching, it seems like a possible workaround could also be editing your includes/file.inc file and look for this line:

if (!move_uploaded_file($_FILES['files']['tmp_name'][$source], $file->uri)) {



Then comment that line out by placing two forward slashes in front of it:

//if (!move_uploaded_file($_FILES['files']['tmp_name'][$source], $file->uri)) {



Finally below the line you just commented out, add this one:

if (!move_uploaded_file($_FILES['files']['tmp_name'][$source], drupal_realpath($file->uri))) {



Please let us know if any of these were able to work for you.

- Jacob

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!