Tagged: gallery
- This topic has 10 replies, 3 voices, and was last updated 8 years, 2 months ago by Mahesh.
-
AuthorPosts
-
January 28, 2016 at 3:40 pm #83956Petr SabataMemberJanuary 28, 2016 at 4:06 pm #83957MaheshKeymaster
Hi @Petr Sabata,
Please post in your site url.
Regards,
MaheshJanuary 28, 2016 at 4:59 pm #83968Petr SabataMemberHi Mahesh, I’m sorry for the missing URL, here it is:
http://csszo6-11.cz/2008/11/19/expedice-jamina-2008-10-19-9-2008/
January 28, 2016 at 5:42 pm #83974MaheshKeymasterHi @Petr Sabata,
This is a bug and will be fixed in the next update. For now please go to “Dashboard=> Appearance=> Theme Options=> Custom CSS” box and add the following CSS.
#content .gallery-item { display: inline-block; margin: 0; }
Regards,
MaheshJanuary 28, 2016 at 6:00 pm #83976Petr SabataMemberThanks, that worked.
January 30, 2016 at 5:54 pm #84152wwwalkerMemberYes that worked for my sites too. That took about 2 days to find out!
Now the caption screws up the layout. Instead of wrapping and having each picture in a 1/3 of width box the caption does not wrap and if it is very long the box for the picture is very wide. There are still 3 columns but the columns are even depending on caption length.
So the CSS suggested was not complete. It needs something to force 33% width so the caption wraps.
Also the picture should be top aligned and not pushed up if caption is too long and pushes up picture.
I will have to fiddle with CSS to get a better result with very long captions that are wider than the thumbnails above them.
If you have the CSS answer please give it.
January 30, 2016 at 6:10 pm #84154wwwalkerMemberSee mepsa.org gallery photos 2014 to see lousy long caption layout with above CSS.
Caption does not wrap and forces width of box to be very wide and make 1 to 3 columns per row.
January 30, 2016 at 7:59 pm #84158wwwalkerMemberI came up with CSS:
#content .gallery-item {
display: inline-block;
margin: 0;
width: 33%;
max-width: 300px;
vertical-align: text-top;
}February 1, 2016 at 9:43 am #84291MaheshKeymasterHi @wwwalker,
Sorry for the late reply.
That’s great to know that you’ve found the solution to your issue by yourself. I was about to check your site but seems your site’s down with message “Error establishing a database connection”.Let me know if any problem.
Regards,
MaheshFebruary 1, 2016 at 12:50 pm #84313wwwalkerMemberYes. I just changed hosting but had to update database connection string. That is now fixed. I only just found my database error when I tried to open site on new hosting with database connection error. It is now fixed. You can check it now if you like. Site looks fine on new hosting and with software all fixed up re WordPress etc.
Saga is over of updating site, moving hosting and delegating domain.
February 1, 2016 at 1:59 pm #84326 -
AuthorPosts
- The topic ‘Inline gallery display only one column’ is closed to new replies.