---
title: 'Add logo image'
url: 'https://getgrav.org/forum/archive/add-logo-image-t4819'
markdown: 'https://getgrav.org/forum/archive/add-logo-image-t4819.md'
date: '2026-06-21'
description: "Hello, i'm adding a logo image here: /user/images/logo-image.png In base/html.twig adding this: --- html <a href=\"{{ base_url == '' ? '/' : base_url }}\"><img"
---

[Archive](https://getgrav.org/forum/archive)

#  Add logo image 

  Started by Muut Archive 9 years ago · 6 replies · 2792 views    

 [9 years ago](https://getgrav.org/forum/archive/add-logo-image-t4819#post-15368 "Permalink") 

Hello,
i'm adding a logo image here:

```
/user/images/logo-image.png
```

In *base/html.twig* adding this:
\--- html
<a href="{{ base\_url == '' ? '/' : base\_url }}"><img src="{{ base\_url\_relative }}/user/images/logo-reisgierig.png"></a>

```

In the settings activate *nl* and *en* languages for translate the variables. The theme is *Animatter*

The problem is that the logo doesn't load. If i looking in the code there is adding automattically *nl*:
--- html
<img src="https://getgrav.org/nl/user/images/logo-reisgierig.png">
```

Where can i putting best the logo? Is it better in themes dir? How can i solve this that the logo shows without problem?

This is the website: <https://reisgierig.be/>

PS: This is not a multilanguage website. It is for one language *nl*

 [9 years ago](https://getgrav.org/forum/archive/add-logo-image-t4819#post-15369 "Permalink") 

`base_url` contains the language on multilanguage sites.

Try `<img src="{{ url('page://images/favicon.png') }}">` instead.

 [9 years ago](https://getgrav.org/forum/archive/add-logo-image-t4819#post-15370 "Permalink") 

Hi flaviocopes,

```twig
<img src="{{ url('page://images/favicon.png') }}">
```

doens't work.

But i placed the logo.png in *../themes/animatter/images/logo.png*

After that adding this code:

```twig
<img src="{{ url('theme://images/logo.png') }}">
```

That works!

 [9 years ago](https://getgrav.org/forum/archive/add-logo-image-t4819#post-15371 "Permalink") 

What about making that logo responsive When scrolling the page and also fitting to the general size of the navbar?

 [9 years ago](https://getgrav.org/forum/archive/add-logo-image-t4819#post-15372 "Permalink") 

That would be good. Do you have a solution howto do that?

 [9 years ago](https://getgrav.org/forum/archive/add-logo-image-t4819#post-15373 "Permalink") 

Late to the party but the following should work when putting images in **user/images**

`<a href="{{ url }}/user/images/logo.png"><img src="{{ url('theme://images/logo.png') }}"></a>`

 [9 years ago](https://getgrav.org/forum/archive/add-logo-image-t4819#post-15374 "Permalink") 

I just figured out I was still pointing the last example towards the theme/images folder and not the user/images folder. The following should now work.

One issue though, how dow you hide *user* in the url so it just shows *domain.com/images/tom.png* and not *domain.com/user/images/tom.png*

```twig

        <a href="{{ url('user://images/tom.png') }}"><img src="{{ url('user://images/tom.png') }}"></a> <br>

        <!-- The following line displays images when placed in the folder user/images -->
        <a href="{{ url }}/user/images/tom.png"><img src="{{ url('user://images/tom.png') }}"></a> <br>
```

[Log in](https://getgrav.org/login?return=%2Fforum%2Farchive%2Fadd-logo-image-t4819) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [About the Archive category](https://getgrav.org/forum/archive/about-the-archive-category-t6942)    [Archive](https://getgrav.org/forum/archive) · by Deleted User, 9 years ago |  | 0 | 2853 | [9 years ago](https://getgrav.org/forum/archive/about-the-archive-category-t6942 "by Deleted User") |
| [Hey buddies!](https://getgrav.org/forum/archive/hey-buddies-t643)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 2 | 1870 | [9 years ago](https://getgrav.org/forum/archive/hey-buddies-t643 "by Muut Archive") |
| [There is a way to do a "if condition" in MD page?](https://getgrav.org/forum/archive/there-is-a-way-to-do-a-if-condition-in-md-page-t3377)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 2 | 5193 | [9 years ago](https://getgrav.org/forum/archive/there-is-a-way-to-do-a-if-condition-in-md-page-t3377 "by Muut Archive") |
| [Official docker image of grav (+admin +gitsync)](https://getgrav.org/forum/archive/official-docker-image-of-grav-admin-gitsync-t8519)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 1 | 4010 | [9 years ago](https://getgrav.org/forum/archive/official-docker-image-of-grav-admin-gitsync-t8519 "by Muut Archive") |
| [Weird Grav + caddy + iOS + https problem](https://getgrav.org/forum/archive/weird-grav-caddy-ios-https-problem-t7837)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 3 | 1958 | [9 years ago](https://getgrav.org/forum/archive/weird-grav-caddy-ios-https-problem-t7837 "by Muut Archive") |
