# Header logo is smaller after upgrading to 2.2.0.beta5

**URL:** https://meta.discourse.org/t/header-logo-is-smaller-after-upgrading-to-2-2-0-beta5/103114
**Category:** Support
**Created:** [11월 29, 2018, 9:54오후 UTC](https://meta.discourse.org/t/header-logo-is-smaller-after-upgrading-to-2-2-0-beta5/103114 "2018-11-29T21:54:57Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![zapata\_36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zapata_36/32/83866_2.png) [@zapata\_36](https://meta.discourse.org/u/zapata_36)
#### Post date: [11월 29, 2018, 9:54오후 UTC](https://meta.discourse.org/t/header-logo-is-smaller-after-upgrading-to-2-2-0-beta5/103114/1 "2018-11-29T21:54:57Z")

</div>

This update seems to have shrunk my header logo considerably. On both my English and French themes.  
Any idea why? I can’t seem to figure out what might have changed.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [11월 29, 2018, 9:57오후 UTC](https://meta.discourse.org/t/header-logo-is-smaller-after-upgrading-to-2-2-0-beta5/103114/2 "2018-11-29T21:57:29Z")

</div>

Hard to say without more details. Can you share a screenshot, or ideally a link to your site?

---

<div class="post-metadata">

### Author: ![zapata\_36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zapata_36/32/83866_2.png) [@zapata\_36](https://meta.discourse.org/u/zapata_36)
#### Post date: [11월 29, 2018, 10:13오후 UTC](https://meta.discourse.org/t/header-logo-is-smaller-after-upgrading-to-2-2-0-beta5/103114/3 "2018-11-29T22:13:25Z")

</div>

[https://share.otf.ca/](https://share.otf.ca/)

It also broke the mobile theming in the header (menus). Which seems to be a result of the much smaller site logo in the header.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [11월 29, 2018, 10:30오후 UTC](https://meta.discourse.org/t/header-logo-is-smaller-after-upgrading-to-2-2-0-beta5/103114/4 "2018-11-29T22:30:40Z")

</div>

Looks related to [Mobile logo in header broken - #14 by Johani](https://meta.discourse.org/t/mobile-logo-in-header-broken/102592/14). The CSS shrinking the logo is below, added to Discourse 6 days ago. Going to ask @Johani to take a look when he’s online. You may simply need to override that CSS in your theme, or we may be able to fix it in Discourse, not sure.

```plaintext
.d-header #site-logo {
    height: 2.57em;
}

```

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [11월 30, 2018, 3:17오전 UTC](https://meta.discourse.org/t/header-logo-is-smaller-after-upgrading-to-2-2-0-beta5/103114/6 "2018-11-30T03:17:37Z")

</div>

> [@zapata\_36](#):
>
> This update seems to have shrunk my header logo considerably.

You can use the following to allow the logo to increase in size up-to the dimensions specified in your theme.

```plaintext
.d-header #site-logo {
  height: auto;
}

```

> [@zapata\_36](#):
>
> It also broke the mobile theming in the header (menus)

I can’t really tell what’s broken because I don’t know what the desired result is.

If you’re noticing a particular problem, please specify what it is.

the logo size on mobile is actually set in your theme. You have these rules in your theme

```plaintext
@media screen and (max-width: 500px) {
  #main #site-logo {
    max-height: 60px;
  }
}

@media screen and (max-width: 800px) {
  #main #site-logo {
    max-width: 100%;
  }
}

```

I noticed that the caret icon is broken but that’s because we changed the way we handle FontAwesome icons.

You have this rule

```plaintext
@media screen and (max-width: 800px) {
  .nav-open:before {
    content:"\f0d7";
    padding: 0 10px;
    font: normal normal normal 14px/1 FontAwesome;
    display: inline-block;
  }
}

```

This doesn’t work anymore.

Since this is custom markup, you can inline the caret icon. You html currently looks like this

```plaintext
<div class="kc-menu-container">
<nav class="kc-menu">
  <input type="checkbox" id="nav" class="hidden">
  <label for="nav" class="nav-open">Menu</label>
  <div class="nav-container">
    <ul>
      <li><a href="https://otf.ca/knowledge">Knowledge Centre</a></li>
      <li><a href="https://share.otf.ca/latest">Discussion</a></li>
      <li><a href="https://otf.ca/knowledge/community-hubs">Community Hubs</a></li>
      <li><a href="https://otf.ca/knowledge/resources">Resources</a></li>
    </ul>
  </div>
</nav>
</div>

```

To add the icon back, you need to add this inside the label

```plaintext
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="fa-caret-down d-icon custom-caret" height="15" width="15" viewBox="0 0 496 512">
  <path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"></path>
</svg>

```

So your markup becomes

```plaintext
<div class="kc-menu-container">
<nav class="kc-menu">
  <input type="checkbox" id="nav" class="hidden">
  <label for="nav" class="nav-open">
   <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="fa-caret-down d-icon custom-caret" height="15" width="15" viewBox="0 0 496 512">
     <path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"></path>
   </svg>
   <span>
    Menu
   </span>
  </label>
  <div class="nav-container">
    <ul>
      <li><a href="https://otf.ca/knowledge">Knowledge Centre</a></li>
      <li><a href="https://share.otf.ca/latest">Discussion</a></li>
      <li><a href="https://otf.ca/knowledge/community-hubs">Community Hubs</a></li>
      <li><a href="https://otf.ca/knowledge/resources">Resources</a></li>
    </ul>
  </div>
</nav>
</div>

```

and add the following CSS to add some margins and control the color of the icon

```plaintext
.custom-caret {
  fill: white;
  margin: 0 10px;
}
```

---

<div class="post-metadata">

### Author: ![zapata\_36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zapata_36/32/83866_2.png) [@zapata\_36](https://meta.discourse.org/u/zapata_36)
#### Post date: [11월 30, 2018, 3:00오후 UTC](https://meta.discourse.org/t/header-logo-is-smaller-after-upgrading-to-2-2-0-beta5/103114/7 "2018-11-30T15:00:09Z")

</div>

Thanks for your prompt help!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [12월 30, 2018, 3:00오후 UTC](https://meta.discourse.org/t/header-logo-is-smaller-after-upgrading-to-2-2-0-beta5/103114/8 "2018-12-30T15:00:12Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
