Announcement

#1 2017-01-20 19:58:08

f3red
Member
Cold Springs (Reno), NV, USA
2015-06-11
65

HTML tags in photo description

Dear Piwigo Friends,

I would like to know if it is possible to use HTML tags in the descriptions of photos. I was not able to find anything addressing this capability on a forum or google search.

I initially just want to style text: text-align:center, for instance.

Cheers from sunny AND snowy Reno, Nevada, USA,
f3



Piwigo version: 2.8.5 (finally, with thanks to flop25)
PHP version:
MySQL version:
Piwigo URL: http://photos.384thbombgroup.com/

Last edited by f3red (2017-01-20 21:10:31)

Offline

 

#2 2017-01-21 20:49:29

teekay
Member
2013-06-12
427

Re: HTML tags in photo description

From include/config_default.inc.php:

Code:

// allow_html_descriptions : authorize administrators to use HTML in
// category and element description.
$conf['allow_html_descriptions'] = true;

So it should work out of the box for admin users.

Offline

 

#3 2017-01-21 23:55:48

f3red
Member
Cold Springs (Reno), NV, USA
2015-06-11
65

Re: HTML tags in photo description

Thanks, Teekay.

Your reply encouraged me to return to the photo and see just what I had done... I had attempted to center a BLOCK of text using a SPAN tag. Maybe, if I had included the code you would have had a good laugh at my expense. I changed it to a DIV tag, and not surprisingly it worked as advertised. Mea culpa.

Thanks for encouraging me to put my brain in a gear other than reverse!

Cheers,
f3

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact