Photoswipe move thumbnails in Categorie View

Phoca Gallery - image gallery extension
4ioooi7
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 23 Apr 2019, 09:37

Photoswipe move thumbnails in Categorie View

Post by 4ioooi7 » 23 Apr 2019, 09:53

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.

Tags:

KarEm
Phoca Enthusiast
Phoca Enthusiast
Posts: 64
Joined: 20 Dec 2015, 21:25

Re: Photoswipe move thumbnails in Categorie View

Post by KarEm » 23 Apr 2019, 20:10

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

christine
Phoca Hero
Phoca Hero
Posts: 1625
Joined: 28 Nov 2010, 17:20

Re: Photoswipe move thumbnails in Categorie View

Post by christine » 23 Apr 2019, 22:33

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

4ioooi7
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 23 Apr 2019, 09:37

Re: Photoswipe move thumbnails in Categorie View

Post by 4ioooi7 » 27 Apr 2019, 10:32

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.

KarEm
Phoca Enthusiast
Phoca Enthusiast
Posts: 64
Joined: 20 Dec 2015, 21:25

Re: Photoswipe move thumbnails in Categorie View

Post by KarEm » 27 Apr 2019, 15:19

Hi,
Thanks for your response.

@Christine
Thanks for the link, good to know.

Regards
KarEm

christine
Phoca Hero
Phoca Hero
Posts: 1625
Joined: 28 Nov 2010, 17:20

Re: Photoswipe move thumbnails in Categorie View

Post by christine » 27 Apr 2019, 22:34

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

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 41236
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Photoswipe move thumbnails in Categorie View

Post by Jan » 29 Apr 2019, 10:38

Hi, thank you for the info, I will take a look at it for the next version.

Jan
If you find Phoca extensions useful, please support the project

christine
Phoca Hero
Phoca Hero
Posts: 1625
Joined: 28 Nov 2010, 17:20

Re: Photoswipe move thumbnails in Categorie View

Post by christine » 29 Apr 2019, 11:00

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

Post Reply