Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
JMM
Experienced
Topic Author
Posts: 216
Joined: 02 Aug 2021, 11:18

Can I changed the wording in Context Settings of Items (tags)?

08 Jun 2025, 20:32

Hello again, Karl,

For Items (tags), when amount and folders_amount are selected in Context settings to be displayed for a gallery, when those galleries are displayed, the page shows (for example) 12 Images and/or 3 Folders (if they are present).

Not site-wide, but on a gallery-by-gallery (folder-by-folder) basis, am I able through Custom CSS for each gallery (folder) to change the wording, for example:
  • from Images to Panoramas or Videos (or similar); and
  • from Folders to Countries (or similar)?
I acknowledge that I would still select amounts and/or folders_amount in Context settings for those galleries, it is just the wording on the galleries page that I wish to change.

Thank you in advance, and have yourself a great day.

Regards,
John
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Can I changed the wording in Context Settings of Items (tags)?

08 Jun 2025, 22:14

Hi John. Yes, because the lang for these interface elements are done by CSS. For example for a page /your/page/:

Code
.page-your-page .amount:after {
  content: 'myimages!';
}
.page-your-page .folder_amount:after {
  content: 'myfolders!';
}
 
User avatar
JMM
Experienced
Topic Author
Posts: 216
Joined: 02 Aug 2021, 11:18

Re: Can I changed the wording in Context Settings of Items (tags)?

09 Jun 2025, 05:03

Thank you, Sir, that worked out well, as you can see HERE.

Have yourself a great week.

Regards,
John
 
elpd
Experienced
Posts: 55
Joined: 02 Sep 2008, 06:30

Re: Can I changed the wording in Context Settings of Items (tags)?

16 Feb 2026, 11:27

Hi Karl,

I'm trying to achieve the same thing on my website. I would like to change the naming of these items at the page/album level, but I can’t get it to work using the code you provided.

Could you please explain a bit more specifically where exactly I should add this code and what I need to modify in order to make it work on my site? I’ve already tried several things, but unfortunately without any result or error message.

Thanks in advance!

Best regards,
Erik
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Can I changed the wording in Context Settings of Items (tags)?

16 Feb 2026, 21:31

elpd wrote:I would like to change the naming of these items at the page/album level
Please send me a link to the page where you want to change the text, and the exact text you want to change it to, and I will give you a working example and where to add it.
 
elpd
Experienced
Posts: 55
Joined: 02 Sep 2008, 06:30

Re: Can I changed the wording in Context Settings of Items (tags)?

17 Feb 2026, 03:36

Thank you for your response. I’ll send you the link to the page and the login details via PM, as I don’t want to make them public yet (the page is still under construction).
You’re welcome to share the solution on the forum, so others might benefit from it as well.

It currently says: Albums
It should say: Cases

Thanks in advance for your reply.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Can I changed the wording in Context Settings of Items (tags)?

17 Feb 2026, 21:28

elpd wrote:It currently says: Albums
It definitely says "Images" and not "Albums", unless you gave the wrong link.
Image

To apply the language change for images and albums, add this to Settings > Custom > Custom CSS:
Code
.page-klantcases .amount:after {
  content: 'Cases'; /* whatever you want it to say instead of "Images" */
}
.page-klantcases .folder_amount:after {
  content: 'Cases'; /* whatever you want it to say instead of "Ablums" */
}
elpd wrote:You’re welcome to share the solution on the forum, so others might benefit from it as well.
This is the same solution as previously shared in this topic. You just need to modify ".page-PAGENAME" to match the page you are applying it for, as in your case it is ".page-klantcases".
 
elpd
Experienced
Posts: 55
Joined: 02 Sep 2008, 06:30

Re: Can I changed the wording in Context Settings of Items (tags)?

18 Feb 2026, 04:53

Thank you for your reply!
It definitely says "Images" and not "Albums", unless you gave the wrong link.
I was referring to the text at the top of the page, where it said 27 Albums (see screenshot below).
voorbeeld.jpg
voorbeeld.jpg (163.92 KiB) Viewed 1046 times
I’ve added the code and it works — it now says Cases. Thank you so much!
This is the same solution as previously shared in this topic. You just need to modify ".page-PAGENAME" to match the page you are applying it for, as in your case it is ".page-klantcases".
I had actually tried something similar before, but I removed the first word “page” as well, which caused it not to work. That was the part that confused me. Now I understand it, and I can apply it to other pages as well.

Thanks again!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Can I changed the wording in Context Settings of Items (tags)?

19 Feb 2026, 03:50

elpd wrote:I was referring to the text at the top of the page, where it said 27 Albums
Ah ... Ok, it seems the solution works for that text also!