![]() |
|
Display Rectangular Thumbnails for Albums & Images - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Display Rectangular Thumbnails for Albums & Images (/thread-12576.html) |
Display Rectangular Thumbnails for Albums & Images - Nezzy - 30-08-2016 I want to change my thumbnails from Square to rectangular (i.e. say from 100px x 100px to 300px x 188px) Is this done via the PHP, a plugin or CSS? I have reviewed some forums topics (that are almost 10 years old), once given a correct direction (starting point) to start would be wonderful. I would think that something may have changed since the older postings - some of which have dead links to examples. Any help would be appreciated. The more I learn, the more I appropriate ZP, it just takes a little more time & effort as the web is not saturated like WP questions & posts. Thank You Display Rectangular Thumbnails for Albums & Images - acrylian - 30-08-2016 Yep, we are a lot smaller than WP but who is not ;-) But you will probably find some things being different but not that different possibly. Images are cropped/resized via PHp and stored in the cache folder. Info on caching here: How you can change your thumbs depends on the theme used. For some standard themes like basic you can just change the sizes on the backend Options > Theme. Zenphoto has various image functions and most always a get (only the url) and a print (prints the acutal image) pair of functions for each. We have You find these here among others (use the browser page search): If you haven't already you should start with the theming tutorial first: Hope that helps for a start. Display Rectangular Thumbnails for Albums & Images - Nezzy - 03-09-2016 Figured it out - took a little time to learn the template functions, but worth it. One very helpful idea - was review an existing theme that has a feature (template function) you want & review the code and learn from it. In my case it helped with the code placement & syntax (being new to PHP). Addendum: previous post 'appropriate' should be 'appreciate' Display Rectangular Thumbnails for Albums & Images - acrylian - 03-09-2016 Good you figured it out! Looking at existing themes is indeed a good way to get familiar with it. |