How do I change the logo in the Navbar? #365
Replies: 4 comments
-
|
@ricardobedjeme, it's the site logo, defined as an SVG. You can easily replace it with your own SVG code. The |
Beta Was this translation helpful? Give feedback.
-
|
Yes I noticed but tell me how to change my logo because I really tried everything and I can'tOn 20 Mar 2025, at 14:17, Emil Gulamov ***@***.***> wrote:
@ricardobedjeme, it's the site logo, defined as an SVG. You can easily replace it with your own SVG code. The {...Astro.props} syntax allows you to customize it further by passing attributes from the navbar, e.g. <BrandLogo class="h-auto w-24" />.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
@ricardobedjeme, so, you just replace the SVG in the |
Beta Was this translation helpful? Give feedback.
-
|
Hey @ricardobedjeme — I finally got it after hours of doing i like i always have in html. your question sounds to me thats how youre trying to do it. The answer is where you think, in the BrandLogo file. I am sure you have this sorted, but I noticed this was open, so if anyone is looking :). The logo needs to be using an SVG in the latest Astro setup (like in ScrewFast) of course :)
import yourLogo from '../images/yourlogoname.svg';Adjust the ../ based on where the file is relative to your component. Then use them: import lightLogo from '../images/yourlogoname_light.svg';
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to remove the present logo and put mine but I don't know where to change I don't understand your BrandLogo.
Beta Was this translation helpful? Give feedback.
All reactions