parallax images not resizing for mobile

Home Forums Porto – Responsive HTML5 Template parallax images not resizing for mobile

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10044565
    adventium
    Participant

    the top parallax images are not resizing smaller for mobile. How can I change it so it reduces like the bottom images for mobile?


    #10044566
    Support
    Keymaster

    Hello, my suggestion is to add a custom class, for example: “my-custom-parallax”

    HTML:

    <section class="my-custom-parallax parallax section section-parallax custom-parallax-bg-pos-left custom-sec-left h-100 m-0" data-plugin-parallax data-plugin-options="{'speed': 1.5, 'horizontalPosition': '100%'}" data-image-src="img/BZImages/1920x1100Doc.jpg" style="min-height: 315px;">
    </section>

    And then customize CSS (css/custom.css):

    @media (max-width: 991px) {
    	.my-custom-parallax {
    		min-height: 31vw !important;
    	}
    	
    	.my-custom-parallax .parallax-background {
    		background-size: 100% !important;
    	}
    }

    Best Regards,

    Okler Themes


    #10044567
    adventium
    Participant

    I tried adding the html code as suggested, but it’s not working. If you view the page on mobile, the images are not responsive. They should be scaling down, but they are not.

    Same problem with the hero images and type — neither are scaling down for mobile as you can see here: https://bodhizone.adventium.net

    Please advise how to make images and type scale down for mobile.


    #10044569
    Support
    Keymaster
    This reply has been marked as private.
    #10044572
    adventium
    Participant

    I tried adding to the hero height: 100vw; max-height: 75vh but now the image is too tall. Is it possible to keep the same height as when it was 550px?


    #10044576
    Support
    Keymaster

    Hi, sure, you can set those numbers to height: 100vw; max-height: 550px;


Viewing 6 posts - 1 through 6 (of 6 total)

This topic is marked as "RESOLVED" and can not rceive new replies.