-
AuthorPosts
-
October 24, 2023 at 8:31 pm #1423624
Hi,
I want to know the exactly proportions for image in Blog Posts element / Grid Layout style, in order to fill the entire space. At this moment, a white background is displayed at the ends of the width – https://novosite.graphitheque.net/#noticias.
In alternative, please give me the css code to change that white background-color.
Thanks
October 25, 2023 at 7:37 am #1423646Hey diogovareta,
Thank you for the inquiry.
This will depend on the number of columns and the maximum container width. If there are two columns for example and the maximum container width is set to 1320px, the minimum width of the images should be at least 660px or larger.
Best regards,
IsmaelOctober 25, 2023 at 12:04 pm #1423680This reply has been marked as private.October 26, 2023 at 9:29 am #1423751Hi,
Thank you for the update.
As you can check the image dimensions placed on that Blog Posts element are 724px x 724px larger than the 655px
We forgot to mention that the default thumbnail used by the Blog Posts element is called portfolio, which has a maximum width and height of 495px. You can increase the size of this thumbnail by using the avf_modify_thumb_size filter in the functions.php file.
add_filter( 'avf_modify_thumb_size', 'avf_modify_thumb_size_mod', 10, 1 ); function avf_modify_thumb_size_mod( $size ) { $size['portfolio'] = array('width'=>1000, 'height'=>1000); return $size; }
After adding the filter, you have to regenerate the thumbnails with this plugin.
// https://wordpress.org/plugins/regenerate-thumbnails/
To adjust the background color of the image container, please add this css code.
.main_color .avia-content-slider .slide-image { background: transparent; }
Best regards,
IsmaelOctober 27, 2023 at 8:29 pm #1423937This reply has been marked as private.October 29, 2023 at 4:41 pm #1424030Hi,
I changed the image size to No Scaling (Original Width X Original Height) in the blog element, it seems to fit correctly now. Please check.Best regards,
MikeOctober 29, 2023 at 5:33 pm #1424037Hi Mike,
This is perfect now!
Many thanks for your support.Have a great day.
October 29, 2023 at 6:24 pm #1424041Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Blog Posts element / Grid Layout style’ is closed to new replies.