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 »

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:
User avatar
KarEm
Phoca Professional
Phoca Professional
Posts: 154
Joined: 20 Dec 2015, 21:25

Re: Photoswipe move thumbnails in Categorie View

Post 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
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Photoswipe move thumbnails in Categorie View

Post 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
4ioooi7
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 23 Apr 2019, 09:37

Re: Photoswipe move thumbnails in Categorie View

Post 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.
User avatar
KarEm
Phoca Professional
Phoca Professional
Posts: 154
Joined: 20 Dec 2015, 21:25

Re: Photoswipe move thumbnails in Categorie View

Post by KarEm »

Hi,
Thanks for your response.

@Christine
Thanks for the link, good to know.

Regards
KarEm
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Photoswipe move thumbnails in Categorie View

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Photoswipe move thumbnails in Categorie View

Post by Jan »

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: 2819
Joined: 28 Nov 2010, 17:20

Re: Photoswipe move thumbnails in Categorie View

Post 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
Post Reply