I want my company logo placed in users/images to show up on the header left-side (like the standard logo on all websites). I added "logo: \user\images\SandLogoOriginal.jpg" in site.yaml, but only the title shows up as text not the logo.
Looks like the deliver theme doesn't actually support a logo configured from site.yaml. You could however modify it and put your own logo there:
https://github.com/getgrav/grav-theme-deliver/blob/develop/templates/partials/base.html.twig#L44-L49
Thanks. Can you send me an example to add the logo in the base.html.twig and use it in site.yaml?
Really it's just HTML at this point, you can't do that?
Boom.. got it :-) Thanks.
SOLUTION (adding it for reference)::
Before:
<div class="logo">
<h3><a href="{{ base_url_absolute }}">{{ config.site.logo }}</a></h3>
{% block social %}
{% include 'partials/social.html.twig' %}
{% endblock %}
</div>
After:
<div class="logo">
<a href="{{ base_url_absolute }}"><img src="{{ base_url_absolute ~ config.site.logo }}" /></a>
{% block social %}
{% include 'partials/social.html.twig' %}
{% endblock %}
</div>
Entry in site.yaml
logo: /user/images/SandLogoOriginal.jpg
Glad you sorted it out. Really wasn't too hard right? :)
Hi Guys,
Thanks for adding this answer....this helped me to add a logo to this template also.
Thank you very much guys !
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1336 | 9 years ago | ||
| 2 | 925 | 9 years ago | ||
| 2 | 4056 | 9 years ago | ||
| 1 | 2941 | 9 years ago | ||
| 3 | 1112 | 9 years ago |