Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ccampello's avatar

It could be more simple to change the Nova logo image

Hi there.

I know where the file is:

resources/views/vendor/nova/partials/logo.blade.php

What I don't know:

How to easily generate the SVG file in code format.

The image width and height .

The trick to change the image color (black on logon page, white in the admin panel).

Bonus:

How to dynamically change and configure it.

Could someone help me with that? Thank you.

0 likes
13 replies
ccampello's avatar

@D9705996 - Yes, I had watch these episode just before I posted in here. He changes the image for a text.

Thank you for the tool, but what the recommended size of the image and how to do the trick to change de image color on logon and admin pages?

Thank you.

D9705996's avatar

@ccampello - sorry Ive not actually used nova yet so Im not 100% sure, was just going on Marcel's excellent series.

To be honest I would just suck it and see. Create an SVG and if it looks odd chnage the size. It will likely be 32x32, 64x64, etc

ccampello's avatar

The steps I made:

  1. Create an image 126x24 pixels with black shapes and transparent background
  2. Export to SVG, check to export text like curves
  3. Open the file with Sublime (or any text editor) and copy only the path tag
  4. Open resources/views/vendor/nova/partials/logo.blade.php
  5. Copy the string fill-rule="evenodd", you can find it in the end of the path tag
  6. Replace only the path line with the path of the file that you created it
  7. Add the fill-rule="evenodd" in the end of the line
  8. It's done.

The fill-rule property do the black-white magic, I think.

I'm pretty sure there's a better way to do this, but, for me, it works.

2 likes
Mithrandir's avatar

I have not yet had use for Nova, but isn't changing the logo against the terms of service?

All copyright and proprietary notices and logos in the Control Panel and within the Software files must remain intact.
ejdelmonico's avatar

@mithrandir is correct. It does say that the logo must remain in the license agreement. However, I really doubt that it would be enforced and it doesn't disallow changing of the text. The copyright statement at the bottom would most likely be enforced unless permission to remove it was obtained.

Cronix's avatar

Probably couldn't be enforced, but it's wrong (and illegal) to remove the branding of a paid product protected by copyright, and using your own as if you created it. You ARE putting yourself at legal risk by doing it.

travis.elkins's avatar

Sorry for jumping in so late, but I just came across this thread.

Anyway, I was wanting to change the logo and copyright info and read this here and became a bit concerned. I certainly don't want to violate any license.

So, I tried to find some official info and came across the following text (from Nova's Terms page at https://nova.laravel.com/terms ):

"All copyright and proprietary notices and logos in the Control Panel and within the original Software files must remain intact. You are granted the ability to customize copyright, proprietary notices and logo files using the underlying override capabilities of the Laravel framework."

So...it seems like it's OK to customize the "copyright, proprietary notices and logo files". I'm not sure what the proprietary notices are, exactly, but I think it's clear what the copyright and logo files are.

It's also not specific about what the "underlying override capabilities of the Laravel framework" are, but I assume that they're the resources\views\vendor\nova\partials\* files. The Themes documentation has a link to a YouTube video by David Hemphill (https://www.youtube.com/watch?v=InK-mRH9z5M&t=85s ) where he shows, among other things, how to override the logo.

So...while there are still some unanswered questions in my mind, it does seem that it's (now) possible to change the logo and copyright.

Anyone else have anything to add or take issue with my conclusions...? I'd love to hear what you think. Thx. :-)

eugenefvdm's avatar

Any ideas how to do this for Nova 4?

The documentation states:

"Brand Logo To customize the logo used at the top left of the Nova interface, you may specify a configuration value for the brand.logo configuration item within your application's config/nova.php configuration file. This configuration value should contain an absolute path to the SVG file of the logo you would like to use:"

But which absolute path? From the root of the file system? From the root of the application? From the root of Nova?

https://nova.laravel.com/docs/4.0/installation.html#branding

EDIT: See https://github.com/laravel/nova-issues/discussions/4041

Please or to participate in this conversation.