Can you reduce the width of the Menu bottom on mobile devices?
net1994
Registered Users Posts: 269 Major grins
The menu button showing up on mobile devices is cutting off parts of great pics. Is there a way to reduce the width, perhaps with some CSS code?
0
Comments
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
You might want to look into using a hamburger menu: https://gallery.imagesinthebackcountry.com/Smugmug-customization/Adding-a-Hamburger-Menu
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Thanks Mike. I'll check it out more in-depth later. I did add the code to move my logo to the top left, which solves a lot of other problems I had. But I don't like the hamburger icon. I was hoping I could just have the 'Menu' button back, then it would drop down with the dark gray menu with the light gray text for the links.
http://www.paintbypixels.com
Just remove this part:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
On the other thread where you accidentally deleted the background (
.sm-user-ui .sm-page-content > .sm-page-layout > .sm-page-layout-region > .sm-page-layout-region-left {background-color: rgba(44,46,49, 0.85);}
). You can add this to it:Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Thanks Mike! That did it. Now is it possible to move the text 'Menu' right below my logo which is on the top left of my page on mobile? And also, can I change the font size of the text 'Menu' so it stands out somewhat more?
http://www.paintbypixels.com
Since you're not taking advantage of the "Hamburger Menu", I suggest removing that code. Having the 'Menu' text under your logo kind of defeats the purpose of using the 'Hamburger Menu'.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Done. Thanks again. And also made the menu button 'thinner.' Though is there a way to move my logo and the menu button to the top left of the page on mobile? Lets say the logo is there and then the menu button is right below it without any space in between. This would be awesome as then there are some pics I can put back into the slide show. A few great pics were obscured by the wider menu button and it's location :-(
And if I can get greedy, is there a way on mobile for when the menu drops down, it has the separator lines like my desktop homepage? I think you helped me out with that code. So for links it would be: Home/line/ Featured Work, Destinations Afar, Mixed Bag/line/the rest
http://www.paintbypixels.com
First, find this:
Use this instead. That just adds the 'no space' code for mobile.
Now for the dropdowns. Find this:
Use this instead. The original code was too selective. This one will add the lines for both desktop and mobile. It also needed the
!important
for mobile.Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Changes made. The lines in the menu on mobile are there, great. However around the logo and menu box is the dark grey transparent overlay, that shows on top of the photo. See below Is there a way to make that area transparent, or remove it altogether. I was also hoping to get the logo and menu bar in the top left on the page in mobile. You should send me an invoice for all this by the way.
![](https://us.v-cdn.net/6029383/uploads/editor/4k/6rypuuc5rm95.jpg ")
http://www.paintbypixels.com
No, changes were duplicated. You somehow added the gray overlay in one of your CSS blocks. Remove this:
You also duplicated this in one of your CSS blocks. Remove it and put it in your theme's custom CSS like it should be.
Once this is done, I'll post the logo/menu to the left code (which I forgot about).
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Thanks Mike! Could you impart the code to get my logo & menu drop down bar to the upper left of the site? And I would think the values that put it in the upper right could be changed to move it to the upper right?
Also, why is there a Theme section for CSS as well as the main site CSS? It seems like for most/all of the mobile stuff, I have to put it in the theme CSS. Why not put it all in one place?
http://www.paintbypixels.com
Add this to your theme's CSS custom section:
Find this in your CSS:
REMOVE the
margin: auto;
Why there is two locations to add CSS? There are several ways to add CSS. I prefer adding it to my theme's CSS. It is easier for me to look a somebody else's CSS and find/edit it using one of the webs tools if they are located in the theme's section. It's difficult for me to find/edit in other locations.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Thanks again Mike. That did it! Is there a way to get the logo and menu box right up on the edge of the mobile browser window? There is a thin column of a few pixels preventing it to be on the edge. See pic below.
http://www.paintbypixels.com
Try adding
margin-top: -4px;
to this:Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
No dice.
http://www.paintbypixels.com
Looks fine to me.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Sorry, I should of been more specific. I mean from the left side of the logo, there is a space where you can see a sliver of the picture and this goes a little bit to the edge of the screen. I want the left side of the logo and the menu button to be right on the edge, without being able to see any of the back round image. See below.
Also, what device are you looking at the site on? For your screenshot, the menu button is at the normal width. I set it well below this to align with the width of the logo.
http://www.paintbypixels.com
Add this:
I don't own a mobile device, so I resize my monitor.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Thanks again Mike! I think I'm done with the mobile side of things. For now....
Now on to obsess about something else on my site!
http://www.paintbypixels.com