Tagged: header, LayerSlider, logo, phone
-
AuthorPosts
-
August 16, 2017 at 5:49 pm #840015
Hi All!
Looking for assistance after trying a few solutions that do not work. Here is the situation:
In order to have a transparent full-size header on the home page and a different transparent size image for the headers on the other pages, I have used a layerslider at the top of the pages. All pages look perfect on monitor, but do not display properly on tablet and phone. The home page displays properly on monitor, tablet, and phone. On the tablet, the logo and main nav are below the slider image and the text below falls on top of the nav. On the phone, the slider is not behind the logo and nav but is below it. Links to pages are in the private content area. Let me know if you need login info.
Your thoughts?
Thanks a bunch!
ValerieAugust 19, 2017 at 5:28 pm #841321Hey Valerie,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (min-width: 768px) and (max-width:1024px) { #layer_slider_1, #layer_slider_3{ min-height: 190px; } .ls-wrapper.ls-bg-outer, .ls-wrapper.ls-bg-outer img, .ls-inner { min-height: 190px; height: 200px !important; } } @media only screen and (max-width: 767px) { #layer_slider_1, #layer_slider_3{ min-height: 100px; } .ls-wrapper.ls-bg-outer, .ls-wrapper.ls-bg-outer img, .ls-inner { min-height: 100px; height: 110px !important; } }
If you need further assistance please let us know.
Best regards,
VictoriaAugust 20, 2017 at 12:20 am #841513Thanks, Victoria! This worked great for taking care of the tablet issues. On the phone screen, however, the image in the slider is not behind the transparent logo and still below the logo/header area. Is there a fix for that? Appreciate the help!
Valerie
August 21, 2017 at 1:04 pm #841979Hi Valerie,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (max-width: 767px) { #top #wrap_all .av_header_transparency { background: transparent; position: absolute!important; }}
If you need further assistance please let us know.
Best regards,
VictoriaAugust 21, 2017 at 4:51 pm #842087Hi Victoria,
That worked great! The logo was partly hanging over the slider image, so I adjusted the min-height and height to take care of that issue.
Next question: is it possible to have the logo and full main nav menu show and be centered when the phone is rotated to landscape? Should I start another thread for that?
Valerie
August 21, 2017 at 5:00 pm #842093And one more: On the tablet and phone the slider image is not responsive horizontally and the image width is compressed. Is there a fix for that? (Landscape is OK.)
Thanks for all the help in making my website professional and beautiful!
Valerie
August 24, 2017 at 12:18 pm #843441Hi,
Please try the following css code to display the default menu on landscape mode.
@media only screen and (max-width: 767px) and (orientation: landscape) { .responsive #top .av-main-nav .menu-item { display: block; } .responsive #header_main_alternate { display: block; } .av-hamburger { display: none; } .responsive #top .logo { position: relative; display: block; float: left; width: auto; left: 50%; -webkit-transform: translate(-50%, 0); -ms-transform: translate(-50%, 0); transform: translate(-50%, 0); } li.av-burger-menu-main.menu-item-avia-special { display: none !important; } }
Best regards,
IsmaelAugust 29, 2017 at 8:56 pm #845444Hi All, thanks so much for help!
Thanks, Ismael, the code for the phone screen to show the full nav menu and hide the burger in landscape mode worked great, with two minor issues:
(1) I need to change the color of the text of the main nav menu to the pink it is on the website and the vertical dividers in between the menu items to another color.
(2) In phone portrait screen, the burger needs to be the same pink as the menu items.How would I do both of these?
Valerie
August 29, 2017 at 9:25 pm #845450Again, to everyone who is helping, thanks!
I am still having an issue with the positions of the logo and slider image that is under the transparent header on a phone screen. In portrait view, the logo flows over the bottom of the slider. The slider image needs to extend to just below the logo and maintain the scale in the horizontal direction. I tried the following code and, while it worked to extend the slider image to just below the logo, it did not scale horizontally when it was scaled up vertically:
@media only screen and (min-width: 768px) and (max-width:1024px) { #layer_slider_1, #layer_slider_3{ min-height: 190px; } .ls-wrapper.ls-bg-outer, .ls-wrapper.ls-bg-outer img, .ls-inner { min-height: 190px; height: 200px !important; } } @media only screen and (max-width: 767px) { #layer_slider_1, #layer_slider_3{ min-height: 100px; } .ls-wrapper.ls-bg-outer, .ls-wrapper.ls-bg-outer img, .ls-inner { min-height: 100px; height: 110px !important; }
The link to the site is in the private area.
Thanks for thinking about this.
ValerieSeptember 1, 2017 at 9:49 am #846736Hi,
1.) Insert this code inside the “landscape” media query:
#top #wrap_all .header_color.av_header_transparency, #top #wrap_all .header_color.av_header_transparency .phone-info.with_nav span, #top #header.header_color.av_header_transparency .av-main-nav > li > a .avia-menu-text, #top #header.header_color.av_header_transparency .av-main-nav > li > a .avia-menu-subtex { color: red; }
2.) Use this css code to change the color of the mobile menu.
.header_color div .av-hamburger-inner, .header_color div .av-hamburger-inner::before, .header_color div .av-hamburger-inner::after { background-color: red; }
3.) Please add this code inside the css media query to increase the height of the layer slider.
#layer_slider_1, #layer_slider_1 .ls-inner, #layer_slider_1 .ls-inner * { min-height: 190px !important; }
I think it’s better if you’re just using the color section element since there are no animations or complex layers, just a background.
Best regards,
IsmaelSeptember 7, 2017 at 6:36 pm #849178Thanks, Ismael. Everything is working great except for two issues remaining only in portrait view on phone: Link to site in private area.
1. The bottom of the logo is still over the bottom of the image behind it.
2. The menu symbol is still not changing to the color I specified.Also, I tried using the color section but ended up with the image not extending across the entire screen and scaling properly.
Can you help with #1 and #2?Then I’m good to go.Appreciate the help!
Valerie.September 8, 2017 at 8:43 am #849481Hi,
1.) I can’t see this issue. Could you please provide a screenshot?
2.) It is working on our installation. Please make sure that there are no invalid css modifications in the Quick CSS field. Check if there are missing curly braces or semicolon.
Best regards,
IsmaelSeptember 8, 2017 at 6:25 pm #849675Hi Ismael,
I have checked the CSS code and corrected an error. With the exception of phone portrait display, the home page is displaying as I intend it to. There is still one issue with the portrait display on my Android phone, Samsung S8. The logo (the word “graycful”) is not entirely on top of the slider image. I have cleared the cache multiple times, and the problem persists. We have focused on increasing the height of the slider image, which has been tricky and resulted in horizontal scaling issues on the phone, or other directional scaling issues on a tablet. I wonder if the easier task is to have the logo scale a little smaller for only the phone portrait display.
A link to an image with issue is in the Private Content. I also created a new user and password for your access to the CSS, and the login info for that is also in the Private Content. Thanks for checking this out for me. I’m sure you’re just a ready as I am to resolve this. ;-)
Valerie
September 9, 2017 at 5:48 am #849840Hi,
We sorted/edited the css codes in the QuicK CSS field and added the following css code to adjust the height of the layer slider on smaller screens.
@media only screen and (max-width: 480px) { #layer_slider_1, #layer_slider_1 .ls-inner, #layer_slider_1 .ls-inner * { min-height: 190px !important; } }
This will distort the layer slide image a bit. Adjust the value as needed.
UPDATE: If you want to decrease the size of the logo, just insert this code inside the css media query with viewport (max-width: 480px).
.responsive .logo img { width: auto; max-height: 50px; }
Default max-height value is 80px.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.