Tagged: x
-
AuthorPosts
-
June 25, 2016 at 3:11 pm #1059442
isdg01ParticipantHI,
I am working on a site based on the Integrity 4 demo. I have seen several posts regarding my same issue, but none of the previous responses are working for me.
On the homepage, the images are loaded via Background Images. The demo file said to make images 1500 x 1000 px. When I use this size, my images are not scaling properly. Instead of showing the full image, a portion of the image is hidden behind the nav bar on the right side.
I have tried a variety of image sizes but all of them are scaling oddly. How do I get my full image to display without getting cutoff?
Thanks,
DawnJune 25, 2016 at 3:12 pm #1059443
isdg01ParticipantThis reply has been marked as private.June 25, 2016 at 9:01 pm #1059691
Rue NelModeratorHello Dawn,
Thanks for writing in and the very detailed information. To fully understand how background images works, please check out this topic: https://community.theme.co/forums/topic/section-background-image-2/#post-691126
And If just simply want to create a fullscreen gallery slider, I would recommend that you install Slider Revolution from X Addons > Extensions and use this plugin to create your slider. You might want to check out this video tutorial;
Hope this helps.
June 27, 2016 at 10:47 am #1061706
isdg01ParticipantSorry, but this is not helpful at all. Integrity 4 Demo uses the WordPress Background Image section to place images on the homepage. Revolution Slider does not work in this area. I am not trying to put a background image in a container. It goes behind the container. From within Cornerstone, this is not do-able (at least from what I have found so far).
I just want my background images to size properly using the Background Image section as shown on the demo. Right now they are going behind the right hand navigation and cutting off half of my image, no matter what size image I use.
Is there a CSS fix to help resolve the issue of the images displaying behind the nav bar and getting cut off?
June 27, 2016 at 12:10 pm #1061845
RupokMemberHi there,
Sorry for the confusion. Demo images are around 1374 × 1031 and 1356 × 1044. So you can try something near that.
You an also try adding this under Custom > CSS in the Customizer.
.backstretch > img { height: auto !important; width: calc(100% - 300px) !important; }Make sure your image is long enough to avoid space in bottom.
Cheers!
June 27, 2016 at 1:22 pm #1061938
isdg01ParticipantThat’s not working either… at least for the responsive part of it. The images look like I want on my 27″ monitor, but not on mobile or iPad. I made all images 1356×1044 since that was the taller of the dimensions you mentioned.
On mobile, in portrait, the images do not show at all. In landscape, they are shoved to the upper left corner behind the nav/masthead, with only a small portion of the left and bottom of the image showing.
On my iPad, I have a huge white space at the bottom, as you mentioned in your note.
Why is this so problematic to reproduce the demo? This is the first time I’ve had this much difficultly with one of your demos…
June 27, 2016 at 2:48 pm #1062065
isdg01ParticipantCan you please send revised CSS code that takes responsive into consideration?
Thanks,
DawnJune 27, 2016 at 7:07 pm #1062365
FriechModeratorHi Dawn,
Please update the code to:
@media (min-width: 980px) { .backstretch > img { height: auto !important; width: calc(100% - 300px) !important; } }So it would not affect the mobile view.
Thanks.
June 28, 2016 at 11:56 am #1063554
isdg01ParticipantOK, we’re almost there…
The new code has the display on my Android phone looking correct. Thank you.
On my iPad in landscape view, the homepage images are still cutting off. Please see attached screenshot.
What can we tweak to make this display properly?Thanks,
DawnJune 28, 2016 at 12:07 pm #1063562
isdg01ParticipantHere’s a smaller version of that screenshot…
June 28, 2016 at 1:13 pm #1063682
RupokMemberHi there,
Thanks for updating. The above code is for desktop only and never should affect mobile view. However we can have a look for the iPad view as well.Unfortunately it’s not possible to diagnose the issue while multiple images are active. Would you keep a single image for now?
Cheers!
June 28, 2016 at 2:31 pm #1063780
isdg01ParticipantHere you go. single image screenshot. If you mean only one image in the background field, feel free to remove some and I can add them back in when you are done.
June 28, 2016 at 10:20 pm #1064262
FriechModeratorHi There,
Yes, the code I’ve provided above does not affect the iPad landscape. Because iPad landscape has a width of 1024px.
Please update the given code to this:
@media (min-width: 1024px) { .backstretch > img { height: auto !important; width: calc(100% - 300px) !important; } }Hope it helps, Cheers!
June 29, 2016 at 3:52 pm #1065518
isdg01ParticipantI have cleared my cache, but this piece of code doesn’t seem to change the layout on the iPad. I am still seeing the background images cutoff as shown in my previous screenshot. Actually, it’s cutting off at 580px. Previously it was cutting off at 595px, so it’s made it a little worse…
June 29, 2016 at 9:53 pm #1066073
Rue NelModeratorHello There,
Thanks for the updates! Could please update the code and make use of this instead:
@media(max-width: 480px) and (min-width: 1024px) { .backstretch > img { height: auto !important; width: calc(100% - 300px) !important; } }We would loved to know if this has work for you. Thank you.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1059442 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
