You have to buy 2 extensions. First is Simple Image Gallery Pro. SIG Pro is the main extension and you'll build galleries with that.
You'll need also Photoswipe template for Simple Image Gallery. That makes Simple Image Gallery Pro opens images in PhotoSwipe.
Quark makes problem is this phase because of there are now 2 PhotoSwipes. Photos has very big margins and photos on phones and tablets are showing in a thumbnail size. You have to switch off template PhotoSwipe. That helps only viewing problem on the phones and tablets.
Because of I don't know CSS and other things so well I asked tips from Styleware and then I got great tips. You must edit templates/gk_quark/css/template.restaurant.test.css file. Remove everything from:
- Code: Select all
.pswp {
display: none;
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
overflow: hidden;
-ms-touch-action: none;
touch-action: none;
z-index: 1500;
-webkit-text-size-adjust: 100%;
-webkit-backface-visibility: hidden;
outline: none;
}
until
- Code: Select all
@media (max-width: 1100px) {
.pswp__caption__center {
padding: 10px;
}
.pswp__caption__center > h3 {
font-size: 16px;
margin: 0 0 10px 0;
max-width: 100%;
width: 100%;
}
.pswp__caption__center > span {
font-size: 13px;
max-width: 100%;
width: 100%;
}
}
Then you'll see great PhotoSwipe in action. But titles are black in black background so it's needed to modify still the previous CSS file. Also I wanted to see titles without description on thumbnails. Styleware friendly told be to add following lines to style sheet.
- Code: Select all
body .my-gallery figcaption {
display: block;
}
.my-gallery .captionDescription {
display: none;
}
.pswp__caption h3.captionTitle {
color: #fff;
}
Now I have almost perfect gallery that I can manage with Simple Image Gallery Pro easily. And I this works also in multi language sites.
But this isn't enough and I have to ask it from Gavick. Quark template have still some PhotoSwipe code somewhere what makes image resize impossible in mobile phones and tables (at least iPhone and iPad). And many pages has six empty squares (PhotoSwipe buttons) at the left bottom position below footer.
What should I do to remove the empty buttons and makes resize to work on mobile phones and tablets?
My test site where you can see PhotoSwipe in action.