
-
AuthorPosts
-
November 30, 2022 at 6:09 am #1374400
question? are there any codes that I can use to move, styling: should the first image be bigger, this image i want to have at the bottom and the rest on the top, and the one without any styling, I will like the images on the right side instead of the left side,
thanks.
November 30, 2022 at 1:27 pm #1374445Hey,
Thanks for contacting us!
1-Unfortunately, there is not a quick CSS snippet we can share to achieve this. Would adding 2 Magazine elements and displaying only 1 item in the bottom one and displaying it bigger would work?
2- Please edit your Magazine element and give it a custom ID (“right-mag” in example below) and add following code to bottom of Quick CSS field in Enfold theme options > General Styling tab
#right-mag .av-magazine-thumbnail { float: right; margin-right: 0; margin-left: 15px; }
Best regards,
YigitDecember 2, 2022 at 4:21 am #1374721for the 2 mag elements, they will pull the same category and will have 2 same new posts in the top and bottom, I wanted to remove the title from the mag as well to give it a transition like its part of the same information but after seeing how this works it would be cool to have a css like how the right-mag id works to just move the big image at the bottom..
The css you gave works nicely, im looking to have the data not look the same in the tables.December 4, 2022 at 3:33 am #1374988Hi,
Thank you for your patience, I’m not sure how you would like this, please link to your page and include a mockup of how you would like it.Best regards,
MikeDecember 6, 2022 at 4:28 pm #1375244This is the layout for the magazine im looking for, by the way is it possible to make those thumbnails bigger like how the nytimes and those other magazines got there’s or is it only this size. hopes this help to clarify on what im looking for exactly.
December 6, 2022 at 8:14 pm #1375272Hi,
I’m not sure that I understand because I was able to create this layout using the current magazine options when using two magazine elements in two columns, the element on the left only shows 4 thumbnails and the element on the right shows one larger 1030px x 1030px image.
So I’m not sure what you would like to change about the layout.To use larger thumbnail images for the magazine element, I added the custom class larger-thumbnails to the element on the left and this script at the end of my child theme functions.php file in Appearance ▸ Editor:
function custom_mag_thumb_size() { ?> <script> window.addEventListener('DOMContentLoaded', function() { (function($){ $('.av-magazine.larger-thumbnails .av-magazine-entry img').attr('width', '180px'); $('.av-magazine.larger-thumbnails .av-magazine-entry img').attr('height', '180px'); $('.av-magazine.larger-thumbnails .av-magazine-entry img').attr('sizes', '(max-width: 180px) 100vw, 180px'); $('.av-magazine.larger-thumbnails .av-magazine-entry .av-magazine-thumbnail').css({'height': '180px','width': '180px'}); })(jQuery); }); </script> <?php } add_action('wp_footer', 'custom_mag_thumb_size');
and this was the result:
I linked my test page below, please give this a try.Best regards,
MikeDecember 6, 2022 at 8:31 pm #1375276I saw it. I totally see what your saying. But the top post is the same as the big post which is two same category just showing one big one on the right side correct? You see when you do the big image the option to put the image beside the rest of posts falls on the right side by default. Well I’m not looking to have two same posts because it’s showing the same one from the right side. I only wanted to swap it around while keeping everything the same. If this can’t be don’t it’s OK.
I only wanted to know if it’s possible to do it without having to put two magazines to get the same effects.I will give the bigger images a shot.
December 7, 2022 at 2:29 am #1375295Hi,
The reason that one entry was shown twice was because I didn’t use the offset option, I was trying to demonstrate the layout, when I choose the offset Do not allow duplicate posts on the entire page (set offset automatically) there are no duplicates:
and the result:
But I think I understand what you mean now so I tested with one element having the top big image to the side and it fell on the left:
To flip it to the other side I added this css:#avia-magazine-1 .av-magazine-hero { float: right; } #avia-magazine-1.av-magazine .av-magazine-sideshow.av_one_half { margin-right: 3%; padding-right: 3%; width: 50%; border-right-width: 1px; border-right-style: solid; margin-left: 0; padding-left: 0; width: 50%; border-left-width: 0px; border-left-style: none; }
Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.