ZenphotoCMS Forum
Metadata de-collapsed - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Metadata de-collapsed (/thread-12638.html)



Metadata de-collapsed - imagepet - 05-12-2016

Hi everybody!

I'm using a customized version of the zpmobile theme and it works pretty good. When displaying the image metadta with the printImageMetadata function, the tag is collapsed or let's say closed by default. When you click on it, it is de-collapsed or opened.
I wanted to display the tag de-collapsed or opened by default. Any ideas? Help is welcome.

Thanks.




Metadata de-collapsed - fretzl - 06-12-2016

In the theme's image.php you'll find:




Simply add a data-collapsed="false" attribute to the div like this:




More info: http://demos.jquerymobile.com/1.1.2/docs/content/content-collapsible.html




Metadata de-collapsed - imagepet - 06-12-2016

Hi Fretzl,
Thanks, works perfect.