Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #987806

    Hello, I’m quite new with Enfold. I’m trying to build a “magazine style ” page for my site and I was wondering for the best way to do this. I tried two different approaches (color section and grid row) that you can see in the annexed site but in both I have the problem to fix the height of section (or grid row) to a given value (i.e. 400px) forcing the content (Featured Image Slider and Magazine items) to stay *within* the given space. Please help me!!!

    #988117

    Hey Roberto,

    I can’t see any overflowing content on that page, could you post a screenshot of the problem and how to reproduce it please?

    Best regards,
    Rikard

    #988159

    Hi Rikard, yes but the height of two items in the page is not fixed at 200px! Sorry if I’ve not been clear: I want to have the grid row height and the color section height *fixed* at a smaller value, 200px for example or less, and I looked for this in the forum: I found some CSS snippets but when applied the content overflowed. So:
    1) please explain me how to fix the grid row height to a given value without overflowing
    2) please let me know the same for the color section.
    Thank you very much! :-)

    #988279

    Hi,

    Thanks for the feedback. If 200 pixels height is not enough, then you would have to add custom CSS to the actual content, or make the container higher. Why do they have to be 200 pixels exactly? If the content doesn’t fit then I think you will have to adjust your plans a bit.

    Best regards,
    Rikard

    #988389

    Yes Rikard I would like to know WHICH CSS to add, it’s exactly what I’m trying unsuccessfully to ask!!!
    Could you tell me exactly the piece of CSS to add to reduce/force the height of color section and of grid row at a desidered small value avoiding the overflowing???
    It’s very important for me!
    Thank you!

    #988575

    Hi,

    It’s not the Color Section you would have to apply the CSS to, it would be the content. We would have to see the actual problem in order to give you accurate code.

    Best regards,
    Rikard

    #988631

    You have not yet understood that I need you to tell me how to set the height FIRST… Because now, in that page the height of the two elements IS bigger than desired!
    Sorry for my bad english but… I try to be clear again:
    – could you give me the piece of CSS or whatever else to FIX the height of the two elements (grid row and color section) to a given (small) value, i.e. 250px or less?
    – could you give me the piece of CSS to force the content of two elements (grid row and color section) *within* the container without overflowing?
    Please find the page, login and password in private content.
    HELP!!!!!

    #989079

    Are you still there?……

    #989921

    Hi Roberto F. ,

    Best regards,
    Victoria

    #989926

    Hi Victoria

    #990685

    Hi Roberto F.,

    Could you please attach a mockup of what you’re trying to achieve?

    Best regards,
    Victoria

    #990732

    Hi Victoria,
    It’s strange that I can not make myself understood…
    You wrote “full-width” and I have always only talked about HEIGHT…
    In private content you’ll find one image with the explanation, I hope this will be clear more than my words.
    Thank you.

    #991427

    Hi,

    The content of the section will get cut off if you set it to have a height of 200px.

    Test it with this css code.

    #red_section {
        height: 200px;
        overflow: hidden;
    }

    Best regards,
    Ismael

    #991451

    Hi Ismael, I tried the color section suggestion you gave me but it doesn’t work. I also tried with !important but nothing at all…
    And for the row grid the problem persists…

    #991893

    Hi,

    I’m just trying to tell you that you can’t set the height to 200px because the content will get cut off. How do you want those sections to look? Please provide a mockup.

    Best regards,
    Ismael

    #991897

    Hi Ismael, I’m trying to tell you instead that the css snippet you wrote doesn’t take any effect at all.
    The content doesn’t get cut off, neither appears as overfloating…
    It doesn’t change anything…

    My goal is to simulate a page in magazine style, as you can see searching on google:
    https://www.google.it/search?q=magazine+wordpress&source=lnms&tbm=isch&sa=X&ved=0ahUKEwibtfKgj8ncAhWJ_qQKHcvPA2QQ_AUICigB&biw=1523&bih=824
    The upper part of page has a left featured new bigger and the rgiht part a bunch of smaller featured news.
    I would like to have this section half the screen tall or something like this…
    Thank you for your help.

    #992663

    Hi,

    Thanks for the update.

    The css code is not supposed to work. I just put it there to show you how setting a specific height would affect the sections.
    Can you be more specific? There’s a lot of results in that search and I’m not really sure which design you’re trying to emulate.

    If you want the following design (see private field), try the masonry element. Set the “Size Settings” to “Perfect Manual Masonry” so that you can control the size and orientation of the images using post tags.

    Perfect Manual Masonry: Manually control the height and width of entries by adding either a “landscape” or “portrait” tag when creating the entry. Elements with no such tag use a fixed default size, elements with both tags will display extra large

    Best regards,
    Ismael

    #992806

    Hi Ismael, referring to the design you selected, I would like to reproduce a similar configuration but dynamic (with bigger post on the left in a slider).
    I modified a little the page setting up three example (two color sections and one grid row) to use in three different news pages:
    – the first (TRY ONE) is almost good but I would like to remove the gap between the first column and the second, and to set the size of entries on the right to fit exactly the the space;
    – the second (TRY TWO) is quite good, even if I tried (without results) to play with css to move the slider a bitter to the left of page;
    – the third (TRY THREE) I have not found a way to reduce the height of slider at all.
    Your help will be very appreciated.

    #993146

    Hi,

    Thanks for the update.

    I think the first example would work. Add these css code to limit the height of the slider and remove the before the masonry element.

    #blue_section .flex_column .avia-slideshow {
        max-height: 330px;
    }
    
    #blue_section .av-flex-placeholder {
        width: 0%;
    }

    Best regards,
    Ismael

    #993202

    Thanks Ismael, with some adjustments it seems to work, even if changong the screen size the layout is not respected… Have you suggestions?
    Any hints for the grid row (try 3)?
    And a general question: there is somewhere a list of all attributes tags (.av-flex-placeholder, .flex_column, .avia-slideshow and so on…) with some explanantion? It would be very very usefull!!!

    #993232

    Hi,

    Use this additional script to adjust the height of the slider based on the height of the masonry element, on browser resize. Put it on the functions.php file.

    add_action('wp_footer', 'ava_resize_blue_slider', 9999);
    function ava_resize_blue_slider() {
        ?>
        <script>
            $(document).ready(function () {
                function resizeSlider() {
                    var slider = $('#blue_section .flex_column .avia-slideshow');
                    var next = $('#blue_section .flex_column .av-masonry');
                    
                    setTimeout( function() {
                        slider.animate({'height':next.height()}, 100);
                    }, 700)	
                }
                
                $(window).on('debouncedresize', resizeSlider );
    	    });
        </script>
        <?php
    }
    

    Best regards,
    Ismael

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