- This topic has 7 replies, 3 voices, and was last updated 4 years, 7 months ago by
David.
-
AuthorPosts
-
July 31, 2021 at 8:47 pm #1878931
Vajramati
Hi, I’m having a problem with my site. The background images are not responsive in every case?
I’m using Gutenberg Editor and GenerateBlocks.Desktop no problem
iPad not resizing landscape or portrait (size seems the size of a desktop image so only a small part shows)
iPhone resizing in portrait not resizing in landscape (size seems the size of a desktop image so only a small part shows)
Can you help?
PeterBlock
Container
Container Full WidthBackgrounds
Cover
Center center
no Repeat FixedAugust 1, 2021 at 5:53 am #1879169David
StaffCustomer SupportHi there,
The Background size cover will resize the image based on the size and shape if its parent container. Which can cause headaches if you need to to keep certain parts of the image always in view.
The GenerateBlocks Pro plugin provides an Advanced Background option, which allows you to change background images and there settings for difference device sizes.But if you want to share a link to a page where i can see the issue?
August 1, 2021 at 8:10 am #1879506Vajramati
The site is still under construction.
https://gothamcitykitties.org/file-2/
The bottom parallax is the image with the problem.from the last email
Desktop no problem
iPad not resizing landscape or portrait
iPhone resizing in portrait not landscape
Can you help?
PeterBlock
Container
Container Full WidthBackgrounds
Cover
Center center
no Repeat FixedAugust 1, 2021 at 8:15 am #1879512David
StaffCustomer SupportAah thats because mobile devices don’t support fixed backgrounds ( they consume a lot of CPU Power ) and iOS has a bug that rescales the images badly. To stop that from happening add this CSS:
@media (pointer: coarse) { .gb-container, .gb-container:before { background-attachment: initial !important; } }This will disable the fixed background property on touch enabled devices.
August 14, 2021 at 4:25 pm #1895965Isrrael
Dear David,
I hope you are well. I got a similar problem, so the difference is that I do not use fixed backgrounds, in my case I am using the background image for a parent container.
Here you can see image in the demo website which is the hero after header.
https://1.hostinge4.com/quienes-somos
PD: I’ve got generatepress pro and generateblock pro.
Thank you for you help.
August 15, 2021 at 4:41 am #1896218David
StaffCustomer SupportHi there,
what are you wanting to change ? Is it to show more of the image on smaller screens ?
September 6, 2021 at 5:53 am #1920343Isrrael
David,
Hi, I want to see the image responsive when we are using the background image for a parent container, so now we can use it but the image is not responsive at all.
Regards
September 6, 2021 at 7:30 am #1920426David
StaffCustomer SupportYou need to adjust the Top and Bottom Padding of the Container Block, and if necessary the font size of the Headline block for Mobile and Tablet.
If you select the Container Block or Headline Block, above the settings you will see Desktop / Tablet and Mobile tabs. Change to the Mobile view, and adjust the Padding Top and Bottom ( eg. make it smaller ) or Typography font size.
By reducing the padding and font size you will maintain the Aspect ratio of the Container so it matches closer to Desktop.
-
AuthorPosts
- You must be logged in to reply to this topic.