Page 1 of 1
Photoswipe move thumbnails in Categorie View
Posted: 23 Apr 2019, 09:53
by 4ioooi7
Hello,
i use phoca Gallerie 4.3.16. I Change my Template to a Gantry5 Framewark from Rockettheme. When i enable photoswipe for detail view, the thumbnail in category view will move from the detail grid. After activate Magnific (Image only) it will show perfekt. Is there a option in photswipe i can fix this?
You can see the problem here: http://phoca.opasbriefmarken.de
Thanks.
Re: Photoswipe move thumbnails in Categorie View
Posted: 23 Apr 2019, 20:10
by KarEm
Hello,
I did some tests and perhaps I found a solution. BUT I don't know that Gantry5 Framework and therefore I don't know where to insert the CSS definition (e.g. if there exists an user.ccs file).
Another option might be to modify the phocagallery.css (...\media\com_phocagallery\css\main).
I don't know whether this change will have some unexpected side effects, so this needs to be tested by yourself.
Search for .pg-box3 figure and insert margin: 0; (with a suitable editor (e.g. Notepad ++))
.pg-box3 figure {
position: relative;
margin: 0;
}
A future update will overwrite this change, so this change must be made again.
Maybe someone else knows a better solution.
Regards
KarEm
Re: Photoswipe move thumbnails in Categorie View
Posted: 23 Apr 2019, 22:33
by christine
Hi,
For amendments, addition etc. to CSS in Gantry, you should create/use a: custom.scss
http://docs.gantry.org/gantry5/tutorial ... tyle-sheet
Just insert KarEm's Code there.
Kind regards
Christine
Re: Photoswipe move thumbnails in Categorie View
Posted: 27 Apr 2019, 10:32
by 4ioooi7
Hello,
the Hack in the photogallery.css works great. I will useing it for now and in the feature i show for custom.scss.
The problem is solved.
Thanks.
Re: Photoswipe move thumbnails in Categorie View
Posted: 27 Apr 2019, 15:19
by KarEm
Hi,
Thanks for your response.
@Christine
Thanks for the link, good to know.
Regards
KarEm
Re: Photoswipe move thumbnails in Categorie View
Posted: 27 Apr 2019, 22:34
by christine
Hi 4ioooi7 & KarEm,
Thanks for your feedback. I searched for, why this margin:0; was missing.
Lines 1012-1021 are commented out (also in latest PG 4.3.18). So, after update you have to add again accordingly.
Will Jan inform about to test, check etc.
Kind regards
Christine
Re: Photoswipe move thumbnails in Categorie View
Posted: 29 Apr 2019, 10:38
by Jan
Hi, thank you for the info, I will take a look at it for the next version.
Jan
Re: Photoswipe move thumbnails in Categorie View
Posted: 29 Apr 2019, 11:00
by christine
Hi,
thank you Jan. Of course, to "rechange" above lines could be influence
other Templates. We will see
But it's always possible, to amend/add (for a quick fix) into your own template.css. In above case into custom.scss.
Kind regards
Christine