Eliminate margin in mobile view + separate landing page without header
First, I just want to say thank you to everyone who has posted helps for others! By reading through past posts, I figured out how to create a hamburger menu, have a "desktop/large screen" slideshow with landscape orientated photos, and have a "mobile/small screen" slideshow with portrait orientated photos.
I just can't figure out some final tweaks.
On desktop view, there is not a large space between my header/logo and the homepage slideshow. But on mobile, there is a large margin there. How can I eliminate it? My homepage: https://tiffanykeetch.smugmug.com
I want to create a separate landing page for Instagram. I have a different logo and menu on that page, so I need to hide the site header and menu. I added some css that I found from another post, and it works when I view it on desktop, but not for mobile. What am I doing wrong? Instagram landing page: https://tiffanykeetch.smugmug.com/Insta
Comments
This should take care of both. Add this to your Theme's Custom CSS section.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Thank you so much! I didn’t even realize there was another place for .css besides the custom .css element I could add to the Entire Site (or each page.) I compiled all the .css to that one space, and deleted all of the separate elements.
The separate landing page is now working with only 1 logo. But there is still a gap between the logo and the slideshow on the mobile homepage. I'll attach a screenshot. It seems like there is an element there (672x32) that could be removed?
To make things easier, I copied and pasted all of the current .css into a google doc, so you can see everything at a glance. Maybe there is a conflict or something? https://docs.google.com/document/d/1CSIaLCBX_V8gh3rv3_-wuxQed0ixujOfbqt7xqokrXQ/edit?usp=sharing
(
You removed the code that would have removed the padding. You have this:
You need this instead:
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 need for that. I can see (and edit it) using Firefox web tools. That's also why I asked you to add it to your theme's custom section. Easy for me (and others) to see and edit.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Oops! I must have accidentally deleted that line when I added the "Hides Header on Insta". Thank you! Margin fixed!
So... I clicked on your siggy link "My SmugMug Customizations" and there are so many cool things in there! I found the "Off Canvas Navigation Menu" and I love how it works so much more than how the regular hamburger/menu was working for mobile.
I want that to only show up on mobile, and to have the regular horizontal menu links on larger screens.
For now, I added the html only to my separate landing page while I am figuring out how it all works. (http://tiffanykeetch.smugmug.com/insta) But after that I'd like to add it to both the entire site menu and my separate homepage menu.
I messed a bit with the code - I changed the colors, the size of the fonticon, and I moved the @ media code so it would surround all the code. (I'm sure there are some lines that can be deleted that refer only to larger screens, but I wasn't sure which ones and I didn't want to delete anything I wasn't supposed to.)
1- Is this possible?
2- How can I get it to be hidden on larger screens?
3- How can I move the hamburger icon up to the right corner of the screen?
4- How can I change the hamburger icon color to #99cccc?
5- Maybe I'm making all of this too complicated - I feel like I have too many menus. On the entire site I have all the regular page links, plus I want a link for "Home." On the homepage, I just want the "Home" to be hidden, so I created a whole separate menu. And on the Instagram landing page, I want the "Home" to say "Website" instead. Is there an easier way to accomplish this rather then having 3 separate menus (plus separate ones for mobile?)
Thank you SO much for your help!! I feel like I should compensate you for your time!
Glad you found (and liked) the other custom stuff. > @tkeetch said:
Possible what?
Not sure what menu your talking about, but generally if you want to hide something on larger monitors:
Conversely, if you want to hide smaller monitors:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Move the HTML/CSS block that contains that menu ABOVE your Instagram Logo.
Then click on the "triangle" for your Instagram Logo. Edit the top margin to a negative number to pull the logo up. Also, change the width from 100% to 50%. Save. That should do it.
You missed the
#
before the99cccc
. This is what you have now:You need 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
I think you are. I don't understand the need for a separate Instagram landing page. What does it do?
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Ok. Thanks!
I agree. Everything was too complicated. I deleted all of the menus but two. I have the Smugmug Nav Menu on the Entire Site for large screens, as well as an HTML Off Canvas Navigation Menu for mobile screens.
Here is where I'm stuck now...
6. In desktop view - the Off Canvas Navigation Hamburger Menu shows in the top right of the screen. How can I hide this?
THANK YOU so much for your help!!
This should take care of both:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Thank you!!