Home › Forums › Omega Child › Composer Plus Banner Displays Incorrectly
Tagged: Banner, Composer, Display Image, responsive
- This topic has 9 replies, 3 voices, and was last updated 10 years, 7 months ago by
han.
-
AuthorPosts
-
July 29, 2015 at 6:22 am #3874
rumblestix
ParticipantTheme: Composer Plus
Site: http://janenashart.com
Banner Image: http://i.imgur.com/ivYpw3w.jpg
Problem: banner image does not scale appropriately and consistently.I rescaled and cropped the banner image to be 1866 x 836 pixels and 96 dpi using Gimp. Then I uploaded the image to wordpress and selected it via >Customize>Header Image. When the page is saved and refreshed only the top 30% of the image is actually displayed in the banner when in maximized view on a widescreen monitor. I would like the whole image to display.
The image also seems to move down and tile as the banner space is resized with the browser. This is also replicated on http://mobiletest.me/. I would like the full image to display relative to the screen size – without tiling.
Tried rescaling the images but the didn’t work. Any suggestions would be greatly appreciated.
Thank youJuly 29, 2015 at 1:08 pm #3875han
KeymasterHi rublestix,
You can increase the banner padding to display the whole image. Go to “Appearance > Customize > CSS” and insert below code.home .banner, .banner { padding: 330px 0px; }Free free to change the padding to fit your image height. If you have to adjust the padding on mobile screen, you add below css to target certain viewport size.
@media only screen and (max-width: 768px) { .home .banner, .banner { padding: 100px 0px; } }August 6, 2015 at 4:24 am #3905rumblestix
ParticipantHello Han-
That worked – thank you!Now there is a new problem. The banner image refocuses zooms in or out when the user goes to another page. For example, the banner displays a mountain on the horizon. The sky is 2x larger on the home page vs the other pages. Please advise.
Thank you for your help.August 6, 2015 at 5:03 am #3906han
KeymasterIt appears that they are two different images. You need to remove featured images from pages and only use header image from Customizer (Appearance > Customize > Header Image)
August 13, 2015 at 12:23 am #3919rumblestix
ParticipantYou’re awesome Han. There were two images and I was able to correct the issue per your advice.
Hopefully, this is the last question: when a user scrolls – the banner image moves to the left. How can I fix this?
August 13, 2015 at 2:11 am #3920han
KeymasterTry add background position attribute into banner class.
.home .banner, .banner { background-position: 50% 0px; }November 8, 2015 at 6:30 pm #4296Damon Valley
ParticipantProblem: How can I get my banner image to resize on iPhone/ipad, so it shows full image like on other phones and computer. My site is http://ironbuddhafitness.com.
Thanks in advance.
November 9, 2015 at 4:18 am #4299han
KeymasterHi Damon,
Go to “Appearance > Customize > CSS” and insert below code that will do the trick@media only screen and (max-width: 768px) { .home .banner, .banner { background-attachment: scroll; } }You can also adjust the padding attribute if required.
November 11, 2015 at 11:33 pm #4306Damon Valley
ParticipantThanks, Han.
One more thing. How do I stop the scrolling on my home page in mobile. It tiles my image as I scroll down, which doesn’t look right. Is there a code to stop the tiling? Thanks for the quick response.
November 12, 2015 at 1:35 am #4307han
KeymasterTry below code (add background-position into my previous snippet)
@media only screen and (max-width: 768px) { .home .banner, .banner { background-attachment: scroll; background-position: 50% 0px !important; } } -
AuthorPosts
You must login to reply to this topic.
