-
AuthorPosts
-
December 10, 2015 at 3:18 am #550109
I would like to make it so that my logo shows up in the mobile menu on my iPad in portrait mode like it does on my iPhone (see image) There are two issues with using this code:
1. The first issue is I have my header set to “Header is invisible and appears once the user scrolls down” on the homepage so when I use this code, all you see is the background image with no logo.
2. I have the logo justified to the left instead of centered on my iPad in portrait mode.Can you give me some additional css to make the logo appear the way I want it to please? Thank you!
@media only screen and (min-width: 768px) and (max-width: 1024px) { ul#mobile-advanced { padding-top: 0; margin-top: 85px; }}
December 10, 2015 at 5:26 pm #550569Hi djshortkut!
Please add following code to Quick CSS
@media only screen and (max-width: 990px) { #top .av_header_scrolldown.av_header_transparency { opacity: 1 !important; margin-top: 0!important; } .show_mobile_menu .logo .subtext { opacity: 0; } .show_mobile_menu .logo a > img { opacity: 1!important; } ul#mobile-advanced { padding-top: 0!important; margin-top: 110px; } .show_mobile_menu #header { background: white; } .show_mobile_menu #header_meta { background: #888888!important; } }
Regards,
YigitDecember 10, 2015 at 6:31 pm #550609Thank you so much Yigit! That’s close to what I’m looking for. I changed the media queries so it only affects my iPad in portrait mode and changed the background color of the header meta to match the current site colors of #f8f8f8 but still need some help.
1. With this code it makes the transparent header show up in white at the top of the screen on my homepage which I don’t want. I still want the header to be invisible and only appear once the user scrolls down.
2. Since the header shows up in white and the extra elements section, you can’t see the text on the extra elements section. I want the extra elements text color to be #188ece when the mobile menu is pulled up.
@media only screen and (min-width: 768px) and (max-width: 990px) { #top .av_header_scrolldown.av_header_transparency { opacity: 1 !important; margin-top: 0!important; } .show_mobile_menu .logo .subtext { opacity: 1; } .show_mobile_menu .logo a > img { opacity: 1!important; } ul#mobile-advanced { padding-top: 0!important; margin-top: 110px; } .show_mobile_menu #header { background: white; } .show_mobile_menu #header_meta { background: #f8f8f8!important; } }
- This reply was modified 8 years, 11 months ago by djshortkut.
December 15, 2015 at 2:07 pm #553008Hi!
Please add following code to Quick CSS as well
@media only screen and (max-width: 767px) { #top #wrap_all .av_header_transparency { background-color: transparent; position: absolute!important; } . show_mobile_menu #header_meta * { color: #188ece !important; } }
Cheers!
YigitDecember 15, 2015 at 6:28 pm #553201Thank you Yigit! So I was able to figure out the issue for the color of the text in the extra elements section to make it the correct color. It was conflicting some other quick css I had that I had to remove.
The code that you provided above makes a transparent section behind the logo when the mobile menu is pulled up which I don’t want (see image) so I had to remove the code.
Now when the mobile menu is pulled up on my iPad in portrait mode everything looks great. All I need help with now is making it so that the transparent header doesn’t show up at the top of the fullscreen slider on my iPad in portrait mode. I want the header to be invisible and only appear once the user scrolls down like it is in landscape mode. How can I make this work correctly? Thank you!
December 18, 2015 at 3:27 am #554784Hey!
Thank you for the info. Please try this code in the Quick CSS field:
@media only screen and (max-width: 990px) and (min-width: 768px) { #top .av_header_scrolldown.av_header_transparency { opacity: 0 !important; margin-top: -250px !important; } }
This will force the header to behave same way it does on desktop.
Regards,
IsmaelDecember 18, 2015 at 5:04 am #554810Thanks Ismael! That worked great and fixes the issue of having the transparent header showing up on the screen and makes the header behave the same way it does on the desktop. However, this created a new problem…
When the mobile menu is opened on the iPad in portrait mode, the site automatically scrolls to the top of the screen and now the header portion does not show up with this code when the mobile menu is pulled up. (See image) How can I keep it like it is so that the header still behaves the same way as it does on desktop but get the header to show up when the mobile menu is pulled up like it does on all the other pages? If there is a way to force the header to appear once the mobile menu is pulled up that would solve the issue so it looks like this image. (See Image 2) Note: The other pages don’t use any type of transparent header. Thanks so much!
- This reply was modified 8 years, 11 months ago by djshortkut.
December 18, 2015 at 7:38 am #554858Hey!
Please try to replace the code with this:
@media only screen and (max-width: 990px) and (min-width: 768px) { #top .av_header_scrolldown.av_header_transparency { opacity: 0 !important; margin-top: -250px !important; } .show_mobile_menu .av_header_scrolldown.av_header_transparency { opacity: 1 !important; margin-top: 0 !important; } }
Best regards,
IsmaelDecember 18, 2015 at 7:56 am #554860Still the same result. Not sure why this wouldn’t work. Here are my login credentials so you can take a closer look. Thanks!
- This reply was modified 8 years, 11 months ago by djshortkut.
December 19, 2015 at 4:19 am #555337December 19, 2015 at 6:09 am #555353Thank you so much Ismael, that did it! You can close this thread.
-
AuthorPosts
- The topic ‘Logo in Mobile Menu’ is closed to new replies.