Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Unable to change/add logo to antimatter header

theme

Started by anarchocat 2 years ago · 1 replies · 278 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 TomW, 2 weeks ago
8 227 9 hours ago
Support · by alex, 2 months ago
8 667 24 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 5 days ago