Adding a Hamburger Menu for Mobile - Fine Art Prints for Sale

Adding a Hamburger Menu for Mobile

SmugMug Mobile Screenshot

This will add a “Hamburger Menu” on the top-right and your logo to the top-left, similar to SmugMug’s website, for mobile devices.

CSS


/**
* Adds Hamburger Menu top-right and Moves Logo top-left for Mobile Devices
*****************************************************************************/
.sm-user-ui .sm-page-widget-logo .sm-page-widget-logo-align-left, 
.sm-user-ui .sm-page-widget-logo .sm-page-widget-logo-align-right,
.sm-user-ui .sm-page-widget-logo .sm-page-widget-logo-align-center {
	text-align: left;
	}
	
.sm-user-ui .sm-page-widget-nav .sm-page-widget-nav-mobile .sm-page-widget-nav-menu-expand a.sm-h5 {
	visibility: hidden;
	}	

.sm-user-ui .sm-page-widget-nav .sm-page-widget-nav-mobile .sm-page-widget-nav-menu-expand a.sm-h5:before {
	font-family: 'SmugMug Icon Font Regular';
	font-size: 48px;
	width: 48px;
	line-height: 24px;
	content: '\E039 ';
	display: block;
	visibility: visible;
	}   

.sm-user-ui .sm-page-widget-nav .sm-page-widget-nav-mobile,
.sm-user-ui .sm-page-widget-nav-mobile .sm-page-widget-nav-mobile-header {
	background: none;
	}   

.sm-user-ui .sm-page-widget-nav .sm-page-widget-nav-mobile {
	position: absolute;
	top: 0;
	right: -15px;
	}

If you just want to change the word ‘Menu’ to the hamburger menu use this instead.

CSS


/**
* Change the text ‘Menu’ to a Hamburger Menu for Mobile Devices
*****************************************************************************/
.sm-user-ui .sm-page-widget-nav .sm-page-widget-nav-mobile .sm-page-widget-nav-menu-expand a.sm-h5 {
	visibility: hidden;
	}	

.sm-user-ui .sm-page-widget-nav .sm-page-widget-nav-mobile .sm-page-widget-nav-menu-expand a.sm-h5:before {
	font-family: 'SmugMug Icon Font Regular';
	font-size: 48px;
	line-height: 0px;
	content: '\E039 ';
	display: block;
	visibility: visible;
	}   

.sm-user-ui .sm-page-widget-nav .sm-page-widget-nav-mobile,
.sm-user-ui .sm-page-widget-nav-mobile .sm-page-widget-nav-mobile-header {
	background: none ;
	}  

Powered by SmugMug Log In