Tagged: full width easy slider
-
AuthorPosts
-
January 29, 2022 at 5:08 am #1337823
My pages where I’m using “Full-width Easy Slider” has a large white space between Full-Width Easy Slider and the content below. I’m seeing this on all devices. What is causing that, and how do I remove it?
The only changes that I’ve implemented are 1) adding the Smush Plug-in and 2) adding the following CSS for Mobile Image Display – could one of these be the culprit?
CUSTOM CSS:
/* Mobile Styles Note: Add new CSS to the media query below that you want to only effect the Mobile and Tablet Portrait view */ @media only screen and (max-width: 475px) { #av_section_1, #av_section_2, #av_section_3, #av_section_4 { background-size: cover !important; height: 600px !important; } }
QUICK CSS:
/*Mobile Image Resizing + Custom CSS */ .avia-section { background-size: cover !important; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; }
Here is a screenshot of one of the pages https://ibb.co/vj60T0h
The links to these pages are below.
Any guidance would be greatly appreciated.
Best Regards,
Julio- This topic was modified 2 years, 9 months ago by Mike.
January 29, 2022 at 7:33 pm #1337849UPDATE:
Per Ismael’s suggestion on this post: https://kriesi.at/support/topic/fullwidth-easy-slider-23/, I disabled the Lazy Loading Feature in the Smush Plug-in. As a result, my PC/browser experience appears to be back to normal. However, my mobile experience has NOT improved. On all pages, the first couple of sections below the top fold are larger now and pushing everything down.I have removed the CSS (Custom & Quick) I reference above and it corrects the problem I was experiencing on my mobile devices.
Now, I’m back to the same problem I was trying to fix with this CSS code. On the page referenced below, I’m using a Color Section at the top of the page where I have a background image and special heading text over the top of the image. On larger screens the background image looks good, but on mobile devices is gets smashed. Something in the CSS code I “borrowed” from another post fixed this problem, but caused other problems on the site.
Here is the post I’m referring to where I tried to reapply the CSS: https://kriesi.at/support/topic/color-section-full-size-image-shown-on-mobile/How can I get this image to display properly on mobile?
Thanks for any assistance you can offer.
Best Regards,
Julio- This reply was modified 2 years, 9 months ago by Jules.
January 29, 2022 at 9:08 pm #1337855Hi,
It looks like you have the color section height set to 600px
so you can choose to use a percentage so the mobile screen will be less:
or use this css to set a specific size for mobile:@media only screen and (max-width: 767px) { #av_section_1 > div > .av-section-cont-open { height: 308px !important; } }
After applying the css, please clear your browser cache and check.
Best regards,
MikeJanuary 29, 2022 at 10:46 pm #1337864Mike,
Thank you for your help. As always, it’s greatly appreciated.I tried both of your suggested approaches, but the mobile image still looked smashed and was not displaying fully.
So I retried the original CSS I was using with some minor changes. On the “Custom CSS, I removed references to #av_section_2 thru _4 and I kept the Quick CSS the same – see original references in my initial post above.
CUSTOM CSS:
/* Mobile Styles Note: Add new CSS to the media query below that you want to only effect the Mobile and Tablet Portrait view */@media only screen and (max-width: 475px) { #av_section_1 { background-size: cover !important; height: 600px !important; } }
QUICK CSS:
/*Mobile Image Resizing + Custom CSS */ .avia-section { background-size: cover !important; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; }
Can you please review this code and how the page I reference below is displaying for you on PC & mobile? Does it look ok, any changes?
Thank you!!!
Best Regards,
JulioJanuary 29, 2022 at 11:20 pm #1337866Hi,
Sorry, I thought you didn’t want the color section to be as large as it is, if you do want the color section to take up most of the mobile screen then the css you have is working correctly. Please see the screenshot in the Private Content area.Best regards,
MikeJanuary 29, 2022 at 11:37 pm #1337867Mike,
Thanks for the clarification and the screenshot.
I’m assuming that if I want the mobile images in the Color Section to be smaller, I would have to decrease the number in “height: 600px” – Right?
UPDATE: I changed the “height: 500px” and it negatively effected several pages from a mobile experience.Is there a standard “px” height and width images that would display best for mobile that you would recommend? Also, where can I learn more about CSS (beginners for starters) and Enfold specific CSS tags? THANK YOU!!!!
@media only screen and (max-width: 475px) { #av_section_1 { background-size: cover !important; height: 600px !important; } }
Thank you!!!
Best Regards,
Julio- This reply was modified 2 years, 9 months ago by Jules.
January 30, 2022 at 3:00 pm #1337909Hi,
Thanks for the feedback but could you explain further how several pages were negatively affected? Perhaps these pages had something else going on, or perhaps I’m not fully understanding what you are expecting on mobile, for the page we have been looking at /daily-word-all/ changing the height to 500px doesn’t look very different than 600px, please see the screenshot in the Private Content area. Can you include screenshots of what you are seeing?
As for mobile image sizes, please note that on mobile images are portrait and for desktop images are landscape, which is typically fine for the mobile image to be cropped some to show the full height, this is what background-size: cover does, another option is background-size: contain this forces the full width of the image to show, but the height will not fill the area so you would want to use a portrait sized image for mobile in this case, like 425px x 500px, or whatever size you wish.
One way to achieve this is to duplicate your element and choose your new portrait sized image for mobile and set the display options to show this element only on mobile while hiding the desktop element.
Another possibly for your comment it negatively effected several pages is that the css above is very general, the target of the css rule #av_section_1 is practically on every page and may not be one you want to target, I would recommend using a custom class for each one of these elements you really want to target, such as title-color-section and then adjust your css.Best regards,
MikeJanuary 30, 2022 at 6:20 pm #1337918Mike,
Thanks for the detailed response and continued support. My apologies for not providing more details for “ several pages were negatively affected”.
When I changed the height to 500px within the CSS above, the pages where I’m using a Full-Width Easy Slider at the top of the page the element below is a Color Section and it gets stretched out in height – see example screenshots and page URLs under Private Content.
You make references to: what background-size: cover does, and another option is background-size: contain Where are these referenced within the elements? I don’t recall see these. Thank you!
As for your CSS suggestion
Thank you so much for the details on mobile images. On a couple other pages I created a separate element at the top of the page for mobile only. Took me some trial and error. Since my images for mobile could change from based on the page from Portrait or Landscape, I’m thinking the two separate element approach (desktop vs landscape) might work better for me vs CSS. Will make a choice soon ;)
As for your CSS suggestion: target title-color-section, is this the change I would make to Quick & Custom CSS?
CUSTOM CSS:
@media only screen and (max-width: 475px) { #title-color-section { background-size: cover !important; height: 600px !important; } }
QUICK CSS:
/*Mobile Image Resizing + Custom CSS */ . title-color-section { background-size: cover !important; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; }
Thank you for helping me think through this so I can apply the most efficient approach with constant results.
Best Regards,
JulioJanuary 30, 2022 at 8:29 pm #1337924Hi,
Thanks for the feedback and the links & screenshots, so those 3 pages are using the color section in a different way, two of them contain videos, and one is text, none have background images and none should have the css you are working on for the /daily-word-all/ page, so the error here is that the css above is too general with the target of the css rule #av_section_1 is causing a conflict.
So try removing your previous css, add a custom class to your /daily-word-all/ page color section like: title-color-section
then this css:@media only screen and (max-width: 475px) { #top #main .title-color-section { background-size: cover !important; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; } }
Now about this css, I removed the height because you already have the height set in the element to 600px, and you seem to want this height for mobile also, so there is no need to declare it again, if you want a different mobile height then go ahead and add it. You don’t need to add background-size: cover twice, this one is for mobile, if you always want this for desktop & mobile then use this css instead:
#top #main .title-color-section { background-size: cover !important; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; }
you will note that I added #top #main this adds specificity to ensure it is not overwritten.
Best regards,
MikeJanuary 30, 2022 at 11:37 pm #1337951Mike,
Thank you so very much for the details and helpful guidance.I decided to go with your 2nd CSS suggestion . . .
https://savvyify.com/img/image/HYvp
#top #main .title-color-section { background-size: cover !important; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; }
Appears to be working as desired. If you have no other suggestions, you can close this lengthy :) topic.
Thanks again for ALL your help!!!
Best Regards,
Julio- This reply was modified 2 years, 9 months ago by Jules.
January 31, 2022 at 12:08 am #1337955Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Large White Gap Related to Pages with Full-width Easy Slider’ is closed to new replies.