#8449·humhub

Mobile: show logo and gutter

Author: aronbosCreated Sep 10, 2026Updated Sep 10, 2026

Problem:

On a small screen, if the logo is not shown, there is no option to go back to the homepage.

Moreover, the gutter is only 2px wide, too small to make reading pleasant and even impossible with handles on a mobile.

Proposed solution

Remove in humhub/protected/humhub/views/layouts/main.php on line 36 the classes d-none en d-md-block

<div class="topbar-brand">
    <?= SiteLogo::widget() ?>
 </div>

(Second reason for removal: The md-class blocks the working of the Sitelog::widget sm-class.)

Remove in humhub\widgets\SiteLogo.php on line 27: the classes d-none d-sm-block"


 <a class="navbar-brand" href="< ?= Yii::$app->homeUrl ?>">
      < ?= $img ?>
 </a>

Remove in /humhub/static/scss/_mobile.scss line 20:

    #layout-content > .container {

        &, & > .row {

            --bs-gutter-x: 2px;

        }

    }

These changes improve the readability a lot and make the homepage accessible on a mobile.

I am using version 1.18.5 for the code snippets.