Adminlte: Hide main.header .logo for mobile

Created on 17 Dec 2018  路  1Comment  路  Source: ColorlibHQ/AdminLTE

Hello,
Thank you for the opensource code, probably the most amazing free out there. I know this has been asked before but had no answers unfortunately.

The main header for mobile sizes is double the size because there are two classes in the main-header.
2

I want to make it only one as the following:
1

Can someone please advise on best practice to hide main.header .logo for mobile?

or combine both the class navbar and class logo so both are in the same main-header. As now they are separated?

Issue type:

  • [X ] Feature request
  • [ ] Bug report
  • [ ] Documentation

Environment:

  • AdminLTE Version: 2.4
  • Operating System: Windows 10
  • Browser (Version): Chrome (Latest)

Most helpful comment

Due to AdminLTE v2 using Bootstrap 3 you can use bootstrap available css class to hide it by adding 'hidden-xs' for phone and/or 'hidden-sm' for tablet.
(details: https://getbootstrap.com/docs/3.3/css/#responsive-utilities)

<div class="main-header"><a href="index2.html" class="logo hidden-xs hidden-sm"> <span class="logo-mini"><b>A</b>LT</span> <span class="logo-lg"><b>Admin</b>LTE</span> </a>....</div>

Result will be like this:
screen shot 2018-12-22 at 12 15 05

>All comments

Due to AdminLTE v2 using Bootstrap 3 you can use bootstrap available css class to hide it by adding 'hidden-xs' for phone and/or 'hidden-sm' for tablet.
(details: https://getbootstrap.com/docs/3.3/css/#responsive-utilities)

<div class="main-header"><a href="index2.html" class="logo hidden-xs hidden-sm"> <span class="logo-mini"><b>A</b>LT</span> <span class="logo-lg"><b>Admin</b>LTE</span> </a>....</div>

Result will be like this:
screen shot 2018-12-22 at 12 15 05

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tester10 picture tester10  路  3Comments

acacha picture acacha  路  4Comments

vbetancourt picture vbetancourt  路  3Comments

jrlooney picture jrlooney  路  3Comments

kgoedert picture kgoedert  路  4Comments