Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #356712

    tntcreation
    Participant

    Hi! I’m trying to get my main, most important photo to fit the entire thing, but the edges are cutting off even when I get it to 1500 x 750. I’d love to know how to ensure that doesn’t happen. As well, I was wondering if there is a way to choose what portion of the image is shown on mobile? My idea is to have text sitting above my hand, and I’d like to maintain that look on the mobile version of the site as well! Thank you so much for all your help, I hope these are easy problems to tackle!

    #356713

    tntcreation
    Participant
    This reply has been marked as private.
    #356716

    Christopher
    Moderator

    Hi there,

    Background-size property has some limitation, you can’t keep background image full width with appropriate width and height proportion on all screen sizes , you can add the following code one by one under Customize -> Custom -> CSS and check the result on your site.

    .bg-image.parallax {
        background-size: 100% auto !important;
    }
    .bg-image.parallax {
        background-size: 100% 100% !important;
    }
    .bg-image.parallax {
        background-size: contain !important;
    }
    .bg-image.parallax {
        background-size: cover !important;
    }

    If you wish to use of above codes for mobile devices please try this :

    @media (max-width:767px){
    

    .bg-image.parallax {
    background-size: contain !important;
    }
    }`

    Hope it helps.

    #357579

    tntcreation
    Participant

    Hi, this did not help with fitting the photo in! Is there anything else you can recommend? I imagine this must be a very common problem.

    #357597

    tntcreation
    Participant

    The mobile code helped a lot!! Thank you so much.. but still not getting a nice fit with the picture!

    #357601

    tntcreation
    Participant

    Could not be more grateful about the mobile code working honestly!! Don’t want to jinx it, but that has save dthe mobile appearance!

    #357603

    tntcreation
    Participant

    And now the code doesn’t appear to be working! It sets apart all the photos as separate pieces on mobile!

    #357616

    tntcreation
    Participant

    It is actually working again, but the photo still will not fit to the appropriate size

    #357626

    tntcreation
    Participant

    And I don’t mean to bother you guys but I really need your help on this as soon as possible!

    #357714

    John Ezra
    Member

    Hi there,

    Thanks for updating the thread! Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #357735

    tntcreation
    Participant
    This reply has been marked as private.
    #357840

    Rad
    Moderator

    Hi there,

    This looks a bit hard, would you mind providing a screenshot of your expected result on both mobile and desktop. The problem with backgrounds is that there is no fit to all solution. Like if your image is designed for landscape (desktop), and not applicable for portrait (mobile). I really need to see what’s expected result on both desktop and mobile through mockup design, then we can start from that. We will see if it’s easier for css, or just use visibility for each desktop and mobile.

    As for visibility, you can actually create two sections, with same content, and the only different will be background. The other section would use landscape image, the other will use portrait. And using visibility, hide one from desktop, and hide one from mobile.

    Cheers!

    #357844

    tntcreation
    Participant
    This reply has been marked as private.
    #357847

    tntcreation
    Participant
    This reply has been marked as private.
    #357860

    tntcreation
    Participant
    This reply has been marked as private.