Galleries & Gallery views capitalize first letter of Title field

Phoca Gallery - image gallery extension
MichaelD
Phoca Member
Phoca Member
Posts: 10
Joined: 25 Mar 2023, 17:31

Galleries & Gallery views capitalize first letter of Title field

Post by MichaelD »

Hi,
I've noticed that both in Galleries view and Gallery view, the first letter of the Title field is capitalized, e.g. the original "hello" in the Title field is rendered as "Hello" in the Views. This holds true for both category and image titles.
What do I have to do to display the unaltered string?
Thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49134
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Galleries & Gallery views capitalize first letter of Title field

Post by Jan »

Hi, this is made by the CSS, so you can overwrite this behaviour in your custom CSS (in your template e.g.):

Code: Select all

.pg-item-box-title a:first-letter,
.pg-category-box-title a:first-letter{
    text-transform: capitalize;
}
If you find Phoca extensions useful, please support the project
Post Reply