Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Unable to change/add logo to antimatter header

theme

Started by anarchocat 2 years ago · 1 replies · 191 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 webmasterodp, 1 week ago
4 158 6 days ago
Support · by nwhitfield, 1 week ago
2 137 1 week ago
Support · by stell, 3 weeks ago
5 369 2 weeks ago
Support · by gravinator, 1 month ago
5 560 2 weeks ago
Support · by Gravver, 3 weeks ago
6 348 3 weeks ago