Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

LOGO Changes

Started by Muut Archive 11 years ago · 11 replies · 403 views
11 years ago

Hi all, please help. How do I insert a new png logo into the GRAV one page theme antimatter?.

11 years ago

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.

11 years ago

screenshot please? or link to your site?

11 years ago

the path is output from the Twig:

HTML
<div>
/biz/user/images/logo.png
<img src="/biz/user/images/logo.png">
...
</div>

So you must be outputtting it before the image.

11 years ago

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

11 years ago

sorted it, thanks for the point in the right direction.

11 years ago

I assume any changes to a theme, like adding a logo, would be over-written when the theme is updated?

11 years ago

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. :)

11 years ago

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.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1338 9 years ago
Archive · by Muut Archive, 9 years ago
2 927 9 years ago
Archive · by Muut Archive, 9 years ago
2 4056 9 years ago
Archive · by Muut Archive, 9 years ago
1 2941 9 years ago
Archive · by Muut Archive, 9 years ago
3 1112 9 years ago