-
AuthorPosts
-
November 13, 2020 at 12:33 pm #1260322
Hi Enfold Team,
I’ve changed the picture on my homepage (English site). Very happy with the result, but unfortunately if you see my homepage on a mobile phone it hasn’t adjusted properly. I only see a big picture and not the text or the button.
How can I change this, so it does the same as the picture of my Dutch homepage?
Many Thanks!
November 14, 2020 at 6:52 am #1260456Hey Eefke,
Please try the following in Quick CSS under Enfold->General Styling:
@media only screen and (max-width: 767px) { .page-id-67 #av_section_1 > div.container > main > div > div > div { top: 0 !important; } }
Best regards,
RikardNovember 16, 2020 at 1:29 pm #1260711Hi Rikard,
It works for the button!
Unfortunately the text isn’t visible yet. Is this because the text is part of the photo and not a text block in WordPress?
Any ideas for that?Thanks!
November 17, 2020 at 12:27 am #1260833Hi shedoesitcoaching,
The text should be placed with the slider, not on the image. We cannot make it responsive this way.
If you need further assistance please let us know.
Best regards,
VictoriaNovember 17, 2020 at 4:42 pm #1261051Hi Victoria,
Clear. I’ve changed that.
But unfortunately the text is now placed on my face ;). Is there a way to adjust it like the old photo on my Dutch homepage?Many thanks.
November 17, 2020 at 9:39 pm #1261116Hi shedoesitcoaching,
Best regards,
VictoriaNovember 18, 2020 at 1:25 pm #1261272Hi Victoria,
If I delete the code the text is still over my face and I don’t see the button anymore.
Any other coding idea?Many thanks!
- This reply was modified 4 years, 1 month ago by shedoesitcoaching.
November 20, 2020 at 12:09 am #1261662Hi Victoria,
It’s better to use a full-width slider in this case. The caption there can be easily adjusted. I could not really find a good css solution with the current layout.
Best regards,
VictoriaNovember 22, 2020 at 3:17 pm #1262120Hi Victoria,
I’m curious what’s the different with my Dutch page as there the text looks good on a mobile.
Maybe some coding which does the work? Any ideas?Thanks.
EefkeDecember 4, 2020 at 1:51 pm #1265007Hi Enfold Team!
Could someone please help me with this?
Thank you!December 5, 2020 at 10:10 pm #1265208Hi,
Sorry for the very late reply and thanks for the link, for your [en] page please try this css in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:@media only screen and (max-width: 767px) { html[lang="en-US"] #top.home #av_section_1 > div.container > main > div > div > div > section > div > p { margin: 0 !important; line-height: 50px; background: rgba(255,255,255,0.6); } html[lang="en-US"] #top.home #av_section_1 > div > main > div > div > div > div.hr.hr-invisible.avia-builder-el-3 { display: none !important; } html[lang="en-US"] #top.home #av_section_1 > div.container > main { vertical-align: bottom !important; } html[lang="en-US"] #top.home #av_section_1 > div.container > main > div > div > div { margin-bottom: 0px !important; } }
After applying the css, please clear your browser cache and check.
Please see the screenshot in Private Content area of the expected results.Best regards,
MikeDecember 8, 2020 at 12:27 pm #1265734Hi Mike,
Thanks a lot. It worked.
I’m really happy with it!Is there a way to make the size of the black font a bit smaller?
And can I use the same code to adjust my Dutch homepage?Thank you.
December 8, 2020 at 2:38 pm #1265759Hi,
Glad to hear this helped, to make the black text (Create…) smaller please go to your text element and adjust the font, this is where it is set at 40px, you will note that you can change the font size based on screen size.
We could override with css if you find this doesn’t help, but please try this.
To target your Dutch pages, try adjustinghtml[lang="en-US"]
tohtml[lang="nl-NL"]
Best regards,
MikeDecember 11, 2020 at 2:12 pm #1266538Thanks Mike!
That worked partially for my Dutch website.
I do see the text, but unfortunately the colour of the box is very dark and I don’t see the button.Any ideas how to make it the same as my English homepage?
December 12, 2020 at 1:50 pm #1266770Hi,
For your Dutch site, I found that the css for the box is in your WordPress > Customize > Additional CSS:.page-id-1623 #av_section_1 .avia_textblock.av_inherit_color:first-of-type, .page-id-67 #av_section_1 .avia_textblock.av_inherit_color:first-of-type { background: rgba(56,56,56,0.6); padding: 7px 0px; text-align: center; }
I adjusted the background color to white:
background: rgba(255,255,255,0.6);
The reason the button didn’t show was because in your custom css there was atop: 145px
pushing the box down so the button didn’t show, I commented it out./*.page-id-1623 #av_section_1 > div.container > main > div > div > div,*/ .page-id-67 #av_section_1 > div.container > main > div > div > div { top:145px; } }
I noticed the box was still over your face a little so I added this css to help:
@media only screen and (max-width: 767px){ html[lang="nl-NL"] #top.home #av_section_1 > div.container > main > div > div > div > section > div { padding: 0 !important; } html[lang="nl-NL"] #top.home #av_section_1 > div.container > main > div > div > div > section > div > h1 { margin: 0 !important; } }
This seems to help, but the text is longer in Dutch, perhaps reducing the font size a little more would help.
Please clear your browser cache and check.Best regards,
MikeDecember 17, 2020 at 5:55 pm #1268169Amazing Mike!
Thanks a lot for all your support on this. I’m really happy with the result.Best wishes,
EefkeDecember 18, 2020 at 4:00 am #1268302Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonMarch 31, 2021 at 1:34 pm #1291548We can close this thread. Thank you!
April 1, 2021 at 3:54 am #1291646Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Picture homepage isn't adjusting in a good way to mobile’ is closed to new replies.