Skip to content

v1.0.0

Choose a tag to compare

@karl-bullock karl-bullock released this 14 Aug 01:15
· 14 commits to main since this release
83c8ae4

First release.

Mobile Logo puts your forum's logo in the navigation bar on phones, where visitors otherwise see only a menu button and no sign of whose forum they are on.

What it does

  • Shows an image in the mobile navigation bar, beside the menu and back buttons, on either side of them.
  • Uses an image you already have. By default your favicon, because a favicon is square and that is the shape a navigation bar has room for. You can point it at your forum logo instead, or at any image address.
  • Taps through to the homepage, like the logo on desktop. You can turn that off.
  • Stays out of the way on desktop, where the header already shows your logo.

Notes

  • If the image cannot be shown, nothing is shown rather than a broken image. That covers an unusable address, a missing file, and a plain http:// image on an https:// forum, which browsers block.
  • A path on your own site such as /assets/my-logo.png is best. Hosting the image elsewhere works, but that host then sees every visitor who loads a page.
  • The idea began as a CSS tweak by 010101 on the Flarum community forum (discuss d/27333). That tweak still works on Flarum 2.0; this exists for what a pseudo-element cannot do, namely a real image that links home and carries alt text.