Tips: Change of presentation of title and description in Detail View when using PhotoSwipe

Phoca Gallery - image gallery extension
Socrates_mx5
Phoca Member
Phoca Member
Posts: 37
Joined: 21 Sep 2020, 14:06

Tips: Change of presentation of title and description in Detail View when using PhotoSwipe

Post by Socrates_mx5 »

The title and the description of an image has got the same font, size, etc in PhotoSwipe as default. I wanted the title to stand out like it does elsewhere on the site, e.g. in Joomla rss-feeds. This is what the html-code looks like in PhotoSwipe that one got to work with:

Code: Select all

<div class="pswp__caption__center">Title<br><p>Description</p></div>
The following css-code in phocagallerycustom.css makes it look much better in my point of view:

Code: Select all

/* Title */
.pswp__caption__center {
	font-family: 'Open Sans', sans-serif !important;
	font-size: 18px !important;
	line-height: 2.0 !important;
}
/* Description */
div.pswp__caption__center > p {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
	font-size: 14px !important;
	line-height: 18px !important;
}
A Happy Phoca Gallery User :)
Last edited by Socrates_mx5 on 07 Oct 2020, 00:18, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Tips: Change of presentation of title and description in Detail View when using PhotoSwipe

Post by Jan »

Hi, Ok, thank you for this info.

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