Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #927956

    Hi, this is my first time building website, I am trying to do a simple one pager where the text are centered and scale down when view in mobile .
    problem 1) when my page is viewed in mobile, the format of the pictures change and the content font size stay the same. How do I ensure they stay the same just scale down?
    Problem 2) I am trying to have a masonry structured gallery of 3 pictures in a section oriented in a way where the left or right picture is the full length where the 2 pictures beside it has the total height of the vertical picture.

    I’ve linked an example of what I am trying to achieve as a sample, I appreciate all the help possible.

    Thank You

    Janson

    • This topic was modified 6 years, 12 months ago by hondacbr26.
    #928598

    Anyone?

    #928866

    Hi,

    Thank you for using Enfold.

    1.) The site looks responsive (screenshot: https://imgur.com/a/kTrDR). Could you provide a screenshot of the issue?

    2.) In the “jaymiron” site, the gallery items’ width and height were defined manually. This is the html tag.

    <article class="cf gallery-styles gallery-style-3 col-lg-12">
    <figure class="col left ">
    <div class="bg-cover img-link lazy-load desktop-device" data-original="https://www.jaymiron.com/wp-content/uploads/2015/05/Harookz-JMF-42-1200x800.jpg" style="background-image:url(https://www.jaymiron.com/wp-content/uploads/2015/05/Harookz-JMF-42-1200x800.jpg);"></div></figure>
    <figure class="col left ">
    <div class="bg-cover img-link lazy-load desktop-device" data-original="https://www.jaymiron.com/wp-content/uploads/2015/05/Harookz-JMF-43-1200x800.jpg" style="background-image:url(https://www.jaymiron.com/wp-content/uploads/2015/05/Harookz-JMF-43-1200x800.jpg);"></div></figure>
    <figure class="col left ">
    <div class="bg-cover img-link lazy-load desktop-device" data-original="https://www.jaymiron.com/wp-content/uploads/2015/05/Harookz-JMF-44-1200x800.jpg" style="background-image:url(https://www.jaymiron.com/wp-content/uploads/2015/05/Harookz-JMF-44-1200x800.jpg);"></div></figure>
    </article>

    And the css code.

    .gallery-style-3 figure:nth-child(1),
    .gallery-style-right-3 figure:nth-child(1) {
    	width: 32%;
    }
    
    .gallery-style-right-3 figure:nth-child(2),
    .gallery-style-right-3 figure:nth-child(3),
    .gallery-style-3 figure:nth-child(2),
    .gallery-style-3 figure:nth-child(3) {
    	width: 66%;
    }
    
    /*--------------------------------------------------------------------
    		Advanced galleries fixed heights and margin
    --------------------------------------------------------------------*/
    .gallery-style-right-3 figure:nth-child(2),
    .gallery-style-3 figure:nth-child(2) {
    	margin-bottom: 26px;
    }
    
    .gallery-style-2 .img-link,
    .gallery-style-3 figure:nth-child(1) > .img-link,
    .gallery-style-right-3 figure:nth-child(1) > .img-link {
    	height: 626px;
    }
    
    .gallery-style-right-3 figure:nth-child(2) > .img-link,
    .gallery-style-right-3 figure:nth-child(3) > .img-link,
    .gallery-style-3 figure:nth-child(2) > .img-link,
    .gallery-style-3 figure:nth-child(3) > .img-link  {
    	height: 300px;
    }

    Best regards,
    Ismael

    #929215

    Thanks for the reply,
    There is nothing wrong with jay miron’s website, I am trying to achieve a similar design for his pictures orientation part on mine but I can’t seem to do it with the template on enfold. This is what I am trying to do : https://imgur.com/uwxjRpI
    I guess you answered my question on how to do it. If I am not mistaken there isnt a way to do it with the given templates and the only way to achieve it I must enter CSS codes manually

    #929696

    Hi,

    Please edit your Masonry element and choose “Perfect Manual Masonry” in Size setting. You can add “portrait” tag to your post on your left and “landscape” to the ones on the right.
    If you would like us to look into it for you, please create a temporary admin login and post it here privately.

    Best regards,
    Yigit

    #930113

    Hi Yigit,

    Thank you for the reply, I actually cannot find any Perfect Manual Masonry option under size setting. This is what I see: https://imgur.com/JF5Q7Lb

    #930121

    Hi,

    Could you please post username as well? I tried “admin” but it did not work :)

    Best regards,
    Yigit

    #930127

    Sorry I forgot to attach username.. Please see below.
    Thanks!

    #931010

    Hi,

    I guess you answered my question on how to do it. If I am not mistaken there isnt a way to do it with the given templates and the only way to achieve it I must enter CSS codes manually

    Yes, unfortunately, that is not doable with the masonry elements alone so the css modifications above are required. You may also have to add the html tags manually in a text or code block. You can set the masonry columns to two and the size settings to “Perfect Automatic Masonry” but the size of each column will be 49%-50% of the whole container.

    Best regards,
    Ismael

    #931119

    Do I put in

    .gallery-style-3 figure:nth-child(1),
    .gallery-style-right-3 figure:nth-child(1) {
    width: 32%;
    }

    .gallery-style-right-3 figure:nth-child(2),
    .gallery-style-right-3 figure:nth-child(3),
    .gallery-style-3 figure:nth-child(2),
    .gallery-style-3 figure:nth-child(3) {
    width: 66%;
    }

    /*——————————————————————–
    Advanced galleries fixed heights and margin
    ——————————————————————–*/
    .gallery-style-right-3 figure:nth-child(2),
    .gallery-style-3 figure:nth-child(2) {
    margin-bottom: 26px;
    }

    .gallery-style-2 .img-link,
    .gallery-style-3 figure:nth-child(1) > .img-link,
    .gallery-style-right-3 figure:nth-child(1) > .img-link {
    height: 626px;
    }

    .gallery-style-right-3 figure:nth-child(2) > .img-link,
    .gallery-style-right-3 figure:nth-child(3) > .img-link,
    .gallery-style-3 figure:nth-child(2) > .img-link,
    .gallery-style-3 figure:nth-child(3) > .img-link {
    height: 300px;
    }

    into the Section ID under Masonry Gallery? I tried it and it doesn’t work.
    I also noticed another problem, the pictures has a strange line on the side when I upload them into the gallery. seen here : https://imgur.com/bYqbEbm (bottom of the picture). Is there any explanation for that?

    #931855

    Hi hondacbr26,

    This code should be inserted into Theme options > General styling > Quick css.

    Best regards,
    Victoria

    #932875

    Can you be more specific? I’ve inserted the code in the quick CSS box but nothing has changed. what should other settings be to get the desire orientation ?

    #933318

    Hi,

    Did you use the html tags in a code or text block? Please provide the login details in the private field. We’ll create a test page.

    Best regards,
    Ismael

    #933932

    I’ve provided my login info in previous replies.

    #935197

    Hi,

    We added the html codes in a code block and modified the css codes a bit. ( see private field )

    Best regards,
    Ismael

    #935513

    The pictures doesn’t seem to scale when the screen shrink, is that part of the short code?
    Also, If I want to put my photos up, which part of the short code do I exchange for my jpg’s link?

    #936062

    Hi,

    You need to add more css media query to make it responsive on mobile view. Please edit the code block then look for the src attribute of the img tag. Adjust the image url.

    Best regards,
    Ismael

Viewing 17 posts - 1 through 17 (of 17 total)
  • You must be logged in to reply to this topic.