Centering your mobile menu icon

centered mobile menu iconHere’s a quick tip for those wanting to center their collapsed menu icon on mobile devices.

When using mobile devices, your navigation menu collapses to a mobile friendly size and an icon with three horizontal lines appear on the left side of where your navigation once was. Click on this icon and the mobile navigation menu appears. This keeps the page nice and neat for your viewers.
What appears depends on your settings, if using the “Natural” Mobile Navigation Type, your navigation items will appear regardless. So this applies if you’ve chosen “Collapsible” or “Naturally Collapsible” as your Mobile Navigation Type.
Did you know that you can change the three bar icon (some call it the “hamburger icon”) to text. I often change it to simply “Menu.” Do this in Site Info > Navigation Container> Navigation Items: Menu Label When Collapsed.

Likewise, an icon with four horizontal bars can appear on the right hand side of the menu bar depending on your block settings. Clicking on this icon collapses or expands the block area. But either way, the navigation menu icon will always be on the left.

Some who have selected a block option that disables the block icon would prefer it if the collapsed menu icon would be centered rather than left aligned. This can be accomplished with custom css.

Here’s the code (CE3 only) that should work:

ul.etabs li {
float: none;
margin: 0 auto;
}

2 thoughts on “Centering your mobile menu icon”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About this site

This site is: a repository of time-savers and best practices from a user's perspective, picked up from several years of using TTG plugins.
This site is not: a support site.
Read more here.

Subscribe to new posts

Tip Jar

If this site has saved you some time, kept your hair attached, or otherwise prevented you from tossing the mouse through the monitor, feel free to donate.

Categories


Highly recommended. This is my go-to Lightroom book. Click on the book image. (affiliate link)

Affiliate link!

Current TTG versions

Backlight  4 & 5

See the Backlight Modules page on your site for latest Backlight and module versions and changelogs.

You’ll also find the latest version number and download link for the Lightroom Publisher plugin.
(BL 3 and later)

 

Backlight 1 Versions

Backlight 1.2.4
Pages module 1.2.4
Cart Add-on 4.1.7
Client Response Add-on 7.1.3
Theater Add-on 1.2.6
Galleria Add-on 1.0.0
WordPress Add-on 1.2.6
Publisher 3.2.3

Backlight 1 has seen its end of life. See this post.

CE4 Versions

note: CE4 is no longer being developed or sold. See this post.

TTG-BE: 2.0.5a
Autoindex: 7.0.8
Cart: 3.1.4a
CRG: 6.1.3a
Gallery: 6.1.10
Pages: 7.0.15
Publisher: 2.3.3
Stage: 6.1.6
Theme for WordPress: 3.1.2