Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #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!

    #1260456

    Hey 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,
    Rikard

    #1260711

    Hi 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!

    #1260833

    Hi 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,
    Victoria

    #1261051

    Hi 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.

    #1261116

    Hi shedoesitcoaching,

    Best regards,
    Victoria

    #1261272

    Hi 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!

    #1261662

    Hi 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,
    Victoria

    #1262120

    Hi 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.
    Eefke

    #1265007

    Hi Enfold Team!

    Could someone please help me with this?
    Thank you!

    #1265208

    Hi,
    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,
    Mike

    #1265734

    Hi 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.

    #1265759

    Hi,
    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.
    2020-12-08_072729.jpg
    We could override with css if you find this doesn’t help, but please try this.
    To target your Dutch pages, try adjusting html[lang="en-US"] to html[lang="nl-NL"]

    Best regards,
    Mike

    #1266538

    Thanks 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?

    #1266770

    Hi,
    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 a top: 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,
    Mike

    #1268169

    Amazing Mike!
    Thanks a lot for all your support on this. I’m really happy with the result.

    Best wishes,
    Eefke

    #1268302

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1291548

    We can close this thread. Thank you!

    #1291646

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 19 posts - 1 through 19 (of 19 total)
  • The topic ‘Picture homepage isn't adjusting in a good way to mobile’ is closed to new replies.