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

Unable to change/add logo to antimatter header

theme

Started by anarchocat 2 years ago · 1 replies · 107 views
2 years ago

I'm trying to add a logo to my header using the Antimatter theme. I followed this tutorial : /forum/themes-styling/antimatter-favicon-and-logo-t5558

I changed the following :

HTML
<div id="logo">
      <h3><a href="{{ base_url == '' ? '/' : base_url }}">{{ config.site.title }}</a></h3>
</div>

To the following :

HTML
<div id="logo">
      <h3><a href="{{ base_url == '' ? '/' : base_url }}">{{media['theme://images/logo.png'].html}}</a></h3>
</div>

However, this is what I see in place of the logo on my page :

TXT
 <img alt="" src="/user/themes/antimatter/images/logo.png" />

Which is not the right way to write an img tag.

I'm not sure what went wrong...

2 years ago

Check that answer again. I see it was updated a minute ago

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 21 hours ago
2 67 24 minutes ago
Support · by gtx, 1 week ago
4 233 2 days ago
Support · by Paul Hodges, 2 weeks ago
13 283 5 days ago
Support · by Anna, 3 weeks ago
9 339 1 week ago
Support · by TomW, 2 weeks ago
4 192 2 weeks ago