Hi all, please help. How do I insert a new png logo into the GRAV one page theme antimatter?.
Try this post. Should point you in the right direction.
http://getgrav.org/forum#!/theme-development:add-logo-to-deliver-theme
Thanks a lot, will check it out.
Managed to get the logo to show. But it also shows the path text /biz/user/images/logo.png to the left of the image...please help.
screenshot please? or link to your site?
the path is output from the Twig:
<div>
/biz/user/images/logo.png
<img src="/biz/user/images/logo.png">
...
</div>
So you must be outputtting it before the image.
Thanks. Still lost though - I am slightly challenged with code, but learning - This is what I have in base.html.twig
<header id="header">
<div>
{{ config.site.logo }}
<img src="{{ baseurlabsolute ~ config.site.logo }}" />
<div id="navbar"> etc etc etc
sorted it, thanks for the point in the right direction.
I assume any changes to a theme, like adding a logo, would be over-written when the theme is updated?
I just had this happen when updating the SoraArticle theme. My logo change disappeared. Still getting used to how I can customize a theme I guess. :)
If you change something in a theme that is part of the theme, then yes it will get overwritten. The best approach is to use theme inheritance Then you only provide stuff you want to override/change in your custom theme, and let the base theme your inheriting from get update freely.
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1338 | 9 years ago | ||
| 2 | 927 | 9 years ago | ||
| 2 | 4056 | 9 years ago | ||
| 1 | 2941 | 9 years ago | ||
| 3 | 1112 | 9 years ago |