Composition of a project page with images + projects thumbnails standard size
-
Hi Lay theme people,
I recently switched to lay template and I really like it but I have a couple of issues with how my images show on a project page. Basically, I'd like to present my pictures like on this page (http://diversions.mcslittlestories.com/kushalgupta/) being able to show 2 to 3 images per raw and alternate between 3 and 4 with a a small row gutter of 1% or 2%. The problem is that I don't see how I can achieve this. I tried these 3 options :
1 - If I use Image tab in the gridder, I always get big row gutter where a scroll down directly leads me to the next image showing directly in full screen. (exemple : http://www.damienrayuela.com/the-nam-ou-river)
2 - If I use "stack" I can't put one image right next to another.
3 - If I use the element grid I can't alternate one row with two images, and the next row with three images. I am forced to always have the same number of images per raw.Second question : on this page (http://www.damienrayuela.com/category/projects/) I organized my projects by type but as the project are of different nature (video, portrait, landscape), the thumbnails are all of different sizes and it looks pretty messy. Is there a way to crop in these thumbnails so that they all have the same sizes ?
Many thanks for your help,
Look forward to read you,Best,
Damien
-
Dear @dmnryl
you need to switch off the fullscreen slider. Then you can go for option 1. and display all images underneath each other.You could use CUSTOM CSS to give all images a same height.
Hope that helps :-)
Best!
Marius
-
Hi Marius,
Thanks for your time and support !
1 - Thanks a lot ! It works ;)
2 - For the question regarding the thumbnail sizes, I like your idea of using custom CSS but can't manage to make it work. I added theses lines :
.col .thumb img, #search-results-region .thumbimg.resize {
height: 250px;
}.col {
position: relative;
width: 250px;
height: auto;
overflow: hidden;
}
.thumb img {
position: absolute;
left: 50%;
top: 50%;
height: 100%;
width: auto;
-webkit-transform: translate(-50%,-50%);
-ms-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
}
.thumbnail img.portrait {
width: auto;
height: 250px ;
}My images show in the preview of "customize" but when I publish the change I made, the thumbnails disappear completely.
Any help please ?
Best,
Damien
-
Dear @dmnryl
it is worth to look into this one:
https://www.w3schools.com/css/css3_object-fit.asp
Best!Marius
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it