How to add two galleries to an article

Phoca Gallery - image gallery extension
DavidB2026
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 20 Jun 2026, 08:32

How to add two galleries to an article

Post by DavidB2026 »

Hello,

I am using PG 5.1.3 and J5.4.6.

With your help I have been adding single galleries to my article and that has worked well.

Today I have added two galleries to an article using this format:

< page break >

{phocagallery view=category|categoryid=18}

< page break >

{phocagallery view=category|categoryid=19}

This does not work fully. The second gallery displays and images can be opened as expected. However the first galley, while the thumbnails are displayed, nothing happens when the user clicks on any image from gallery 1.

This can be demonstrated on this page: https://www.angloboerwar.com/unit-infor ... ants-horse

Interestingly, the image icon before the name is suppressed on gallery 2 (intended behaviour) but not for gallery 1.

I have read through the forum posts from this year but cannot find one that is similar to my issue.

Could you suggest how to remedy this please?

With thanks
David
User avatar
christine
Phoca Hero
Phoca Hero
Posts: 3012
Joined: 28 Nov 2010, 17:20

Re: How to add two galleries to an article

Post by christine »

Hi David,

Try removing this: < page break >
DavidB2026 wrote: 18 Jul 2026, 11:45

Interestingly, the image icon before the name is suppressed on gallery 2 (intended behaviour) but not for gallery 1.
See previous thread, info about:

Code: Select all

.ph-si-image {
display: none;
}
to your user.css

Kind regards
Christine
DavidB2026
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 20 Jun 2026, 08:32

Re: How to add two galleries to an article

Post by DavidB2026 »

Many thanks for your reply and on a Saturday too, Christine.

I removed the page breaks from the article as you suggested and that did remedy the issue with the first gallery not displaying properly when an image was clicked.

The text preceding the galleries is quite long so the paging provides a good way to break up the article and shows the different sections to users. Is there a way to combine the paging and the display of more than one gallery please?

Re the image icon in the name, I did add the code to the user.css file again this morning, It had disappeared after the Joomla files were re-installed. It is the only code in the user.css file. Custom.css is empty.

After the change to the user.css, the server cache was deleted and the local browser cache of files was also deleted.

What is odd is that the image icon mostly appears but not always. The only time is does not appear is in the articles with more than one gallery and where page breaks are used eg https://www.angloboerwar.com/unit-infor ... se?start=2

Thank you again for your help
David
User avatar
christine
Phoca Hero
Phoca Hero
Posts: 3012
Joined: 28 Nov 2010, 17:20

Re: How to add two galleries to an article

Post by christine »

Hi David,
DavidB2026 wrote: 18 Jul 2026, 15:36
The text preceding the galleries is quite long so the paging provides a good way to break up the article and shows the different sections to users. Is there a way to combine the paging and the display of more than one gallery please?
I don't know at the moment. In generell I'm using categories.
Re the image icon in the name, I did add the code to the user.css file again this morning, It had disappeared after the Joomla files were re-installed. It is the only code in the user.css file. Custom.css is empty.
I would disable custom.css in the styles settings! You can do this in the backend.

And then add the code back to user.css

What is odd is that the image icon mostly appears but not always. The only time is does not appear is in the articles with more than one gallery and where page breaks are used
When you hover over it, you see: `<svg class="ph-si ph-si-image">`. If you were to try setting a background to 'background: green', you wouldn't see the icon, but rather the square. :-)

Kind regards
Christine
Post Reply