<p>To fetch the logo:</p>

<pre><code>{{ craft.rebrand.logo.url }}
</code></pre>

<p>To check if a logo is uploaded:</p>

<pre><code>{% if craft.rebrand.isLogoUploaded %}
</code></pre>

CC BY-SA 3.0
2015-01-12T11:15:01.493Z
That's great, thanks. I decided to go with using an asset in the end, purely because I can then add alt-text and title using the control panel (and additional fields on the asset.)
Andy H
CC BY-SA 3.0
2015-01-12T11:15:50.777Z
Also I know this is only a feature for Client and above, but it would be useful if this was documented in the templating reference (http://buildwithcraft.com/docs/templating/). I didn't see it anywhere so forgive me if it already is!
Andy H
CC BY-SA 3.0
2015-01-12T12:51:30.063Z
I haven't seen it mentioned anywhere. Found it be having a look the template login.html. By the way, you should mark this as accepted answer.
Fred Carlsen
CC BY-SA 3.0
2015-01-09T13:12:01.320Z
2015-01-09T13:12:01.320Z
Fred Carlsen
<p>For version 3.x.x.</p>

<p>Check and get rebrand logo:</p>

<pre><code>{% if craft.rebrand.isLogoUploaded() %}
    &lt;img width="{{ craft.rebrand.getLogo().size[0] }}" height="{{ craft.rebrand.getLogo().size[1] }}" src="{{ craft.rebrand.getLogo().url }}"&gt;
{% else %}
    Not set.
{% endif %}
</code></pre>

<p>Check and get rebrand icon:</p>

<pre><code>{% if craft.rebrand.isIconUploaded() %}
    &lt;img width="{{ craft.rebrand.getIcon().size[0] }}" height="{{ craft.rebrand.getIcon().size[1] }}" src="{{ craft.rebrand.getIcon().url }}"&gt;
{% else %}
    Not set.
{% endif %}
</code></pre>

<p>Documentation for twig rebrand variable is here: <a href="https://docs.craftcms.com/api/v3/craft-web-twig-variables-rebrand.html#public-methods" rel="nofollow noreferrer">https://docs.craftcms.com/api/v3/craft-web-twig-variables-rebrand.html#public-methods</a></p>

CC BY-SA 4.0
2019-08-23T17:46:47.330Z
2019-08-23T17:46:47.330Z
William Isted
<p>I have uploaded a logo in the General Settings, which I understand changes the logo on the login page.</p>

<p>I was wondering if there was anyway to display this same logo in the site's template?</p>

<p>I know I can achieve this by hard-coding the same URL (but I presume if the logo is changed, this URL will change also.) My other solution is to add a field to a global set but that requires changing the logo in 2 places.</p>

<p>If this isn't possible, how can I retrieve the URL in a plugin? (I have a plugin with a few template helper methods.)</p>

<p>Thanks</p>

<templating><config>
General Settings > logo in the template
# General Settings > logo in the template

(Asked by: username_0 on 2015-01-09)

I have uploaded a logo in the General Settings, which I understand changes the logo on the login page.

I was wondering if there was anyway to display this same logo in the site's template?

I know I can achieve this by hard-coding the same URL (but I presume if the logo is changed, this URL will change also.) My other solution is to add a field to a global set but that requires changing the logo in 2 places.

If this isn't possible, how can I retrieve the URL in a plugin? (I have a plugin with a few template helper methods.)

Thanks

**Tags:** templating, config


---

## 2 answers

### Answer by username_1 on 2015-01-09. Score: 5

To fetch the logo:
{{ craft.rebrand.logo.url }}

To check if a logo is uploaded:
{% if craft.rebrand.isLogoUploaded %}

> **Comments:**
> **username_0**: That's great, thanks. I decided to go with using an asset in the end, purely because I can then add alt-text and title using the control panel (and additional fields on the asset.)  
> **username_0**: Also I know this is only a feature for Client and above, but it would be useful if this was documented in the templating reference (http://buildwithcraft.com/docs/templating/). I didn't see it anywhere so forgive me if it already is!  
> **username_1**: I haven't seen it mentioned anywhere. Found it be having a look the template login.html. By the way, you should mark this as accepted answer.  

---

### Answer by username_2 on 2019-08-23. Score: 3

For version 3.x.x.
Check and get rebrand logo:
{% if craft.rebrand.isLogoUploaded() %}
    
{% else %}
    Not set.
{% endif %}

Check and get rebrand icon:
{% if craft.rebrand.isIconUploaded() %}
    
{% else %}
    Not set.
{% endif %}

Documentation for twig rebrand variable is here: https://docs.craftcms.com/api/v3/craft-web-twig-variables-rebrand.html#public-methods


---

