-
AuthorPosts
-
February 27, 2024 at 2:05 am #1435509
Hi,
I’m using the Enfold law firm demo which uses 1800px x 750px images that display as full scale images. When I replace the
demo images with mine, the images are getting cropped. I tested two images – one is 1800px x 750px the other is
1024px x 682 px – with media library attachment display settings set to medium and to full scale image. No matter what setting I choose the images remain cropped.How can I make my hero images be as large as the law firm demo? Thanks.
February 27, 2024 at 8:17 am #1435543Hey WorldinColor,
Thank you for the inquiry.
The section in the demo appears tall due to the content or columns inside it. On your test page, it seems that the color sections are empty except for a single Special Heading element. If you want to increase the height of the section without adding more content, you can adjust the Layout > Section Height > Section Minimum Height settings.
Best regards,
IsmaelFebruary 28, 2024 at 8:14 am #1435675Hi Ismail,
For the first page, I was able to configure Color Section + background image size to an acceptable combo.
But for the 2nd test page (I’ve since renamed it – see link below) , I need the background image here to be smaller (Color section minimum size~ 300px) – close in size to the Law Firm demo images for all pages excluding Home page. The background image truncates at the top for every Attachment Display Setting – thumbnail to Full size image. Is there css code to truncate only from the bottom rather than the top? As a workaround to this problem I uploaded smaller images but upon uploading the small images resized and the top also truncated. If top truncation can’t be controlled is there a setting to override automatic re-sizing of uploaded images? Thanks!
Image size – 1800 by 750 pixels
Color Section minimum size 300pxFebruary 28, 2024 at 10:54 am #1435712Hi,
Thank you for the update.
For the 2nd test page, try to resize the image to 1300x300px or upload an image with an aspect ratio of 4:1. You can also use this css code to adjust the position of the background image.
.avia-section.av-145nae-c0b58b0338c14abb31641a8e3d686685 { background-position: top center; background-position: 50% 30%; }
Best regards,
IsmaelFebruary 29, 2024 at 3:28 am #1435821Hi Ismael,
I’d love to have CSS as a solution but I did something wrong or the CSS isn’t not working. I added the below to general styling Quick CSS then added photo to Custom CSS Class for the Color section. There’s no change. If I got this wrong please let me know.
1) What is v-145nae-c0b58b0338c14abb31641a8e3d686685 ? Is that specic to the Test page 2 photo? If we can get this to work, I’ll apply this solution to 4-5 other pages that have the similar min Color Section size + background image size issue..photo .avia-section.av-145nae-c0b58b0338c14abb31641a8e3d686685 {
background-position: top center;
background-position: 50% 30%;
}2) While testing, I discovered that this is an issue with screen size – The photo looks perfect on a phone and tablet, is truncated at the top by ~ 0.5 to 0.75 inches on my compact laptop screen, and truncated at both the top and bottom by 1-2 inches on my large 27 inch monitor. Any way to get around this? Please see screenshot links below.
March 1, 2024 at 8:53 pm #1436007Hi,
Just checking in on whether you have any updates/suggestions on this. Resizing the rest of website photos to 1300x300px or aspect ratio of 4:1 is not feasible. Since the photos display properly at tablet size I’m hoping there’s a css workaround.
March 3, 2024 at 8:23 pm #1436158Hi,
Thanks for your patience, it looks like you have your color section set to a max height of 300px, so I checked your page with different screen sizes emulating different devices and the color section stays at 300px, your image inside changes due to the aspect. So if using center center is cuting too much of the top of the image try using top center:so the top of the lady’s head will always show.
Or you can fine tune it with css like this:#av_section_1.avia-section { background-position: 50% 10%; }
Or I guess you can create different images at different sizes to show for different screen sizes using the Element Visibility options, but I’m not sure this would be practical.
Best regards,
MikeMarch 10, 2024 at 7:39 am #1436855This reply has been marked as private.March 10, 2024 at 9:09 am #1436857Hi, thanks for your suggestion which I’ve tested! I was able to find parameters that work for each of the 4 files I need to configure.
Because #av_section_1.is a global ID attribute referenced on multiple images/pages, I couldn’t use it to set the required parameters for each image file. I used the syntax below. It’s working on my desktop (external monitor and compact laptop) and when I resize desktop browser windows to tablet/mobile size. BUT when using a tablet and this code is active, hero images disappear for almost all site pages in all browsers (chrome, safari, firefox).
This only happens with tablets (mobile view is fine). Color section min size = 750px for pages requiring custom background image positioning. Links to pages with the custom CSS are below. Any solutions would be appreciated. Thanks.
.class-hero1 {
background-position: center bottom 85% !important;
}.class-hero2 {
background-position: center bottom 80% !important; }March 10, 2024 at 1:53 pm #1436869Hi,
I have removed the image, but it was not a image of your site, it was from my test page and the water marked iStock image is availability to the public.
I don’t have a physical tablet, but when I use the inspector dev tools responsive sizes I don’t see the issue, please capture the screen resolution of when the image is not showing on your tablet and let us know if it is for both portrait & landscape, perhaps this will help us identify the issue or we can see if someone else on the team has a similar device.Best regards,
MikeApril 3, 2024 at 5:37 am #1439045Hi Mike and Ismael,
I’ve been putting out some fires – thanks for your patience! I was able to get images to display as needed with CSS for each unique image that needed a position tweaked. Please close this ticket.
April 3, 2024 at 6:28 am #1439051 -
AuthorPosts
- The topic ‘Full size hero images are Cropped’ is closed to new replies.