-
AuthorPosts
-
July 20, 2018 at 1:20 pm #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!!!
July 21, 2018 at 5:40 am #988117Hey 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,
RikardJuly 21, 2018 at 2:23 pm #988159Hi 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! :-)July 22, 2018 at 5:50 am #988279Hi,
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,
RikardJuly 22, 2018 at 2:18 pm #988389Yes 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!July 23, 2018 at 5:07 am #988575Hi,
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,
RikardJuly 23, 2018 at 10:19 am #988631You 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!!!!!July 24, 2018 at 9:51 am #989079Are you still there?……
July 25, 2018 at 8:27 pm #989921Hi Roberto F. ,
Best regards,
VictoriaJuly 25, 2018 at 8:44 pm #989926Hi Victoria
July 27, 2018 at 1:21 pm #990685Hi Roberto F.,
Could you please attach a mockup of what you’re trying to achieve?
Best regards,
VictoriaJuly 27, 2018 at 2:46 pm #990732Hi 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.July 30, 2018 at 7:39 am #991427Hi,
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,
IsmaelJuly 30, 2018 at 9:28 am #991451Hi 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…July 31, 2018 at 12:12 pm #991893Hi,
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,
IsmaelJuly 31, 2018 at 12:25 pm #991897Hi 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.August 2, 2018 at 4:57 am #992663Hi,
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,
IsmaelAugust 2, 2018 at 10:29 am #992806Hi 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.August 3, 2018 at 10:26 am #993146Hi,
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,
IsmaelAugust 3, 2018 at 11:42 am #993202Thanks 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!!!August 3, 2018 at 1:05 pm #993232Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.