Modifying Zenphoto StopDesign Theme to Display Images Larger
I am running Zenphoto and really like the StopDesign theme. However, I have disliked the its default image diplay size. I believe the default is 480 pixels wide which is too small for me. I tried modifying this value in the theme configuration with no avail (its the “image size” field). I even posted a bug report of this issue and got this response.
I finally just went into the code and fixed the problem myself. You must modify three files in order to change the image size. The notes below change the default image width to be 680 pixels wide. There are some equations in the .css file which show how to modify the values to obtain a specified target image size if the notes below don’t suit your needs. I simply used those equations to modifiy the custom.css file and then had to manually adjust the photos.css entry to get it working correctly; I used Firebug to help me with this process.
Here are the changes to make the image display size 680 pixels wide:
- In image.php, I changed the default value of 480 to 680. I made three replacements.
- In photos.css (in the theme’s directory), in the descText section, I made image-left: 375 px and made width: 25%
- In custom.css (in the theme’s directory), I followed the equations for each section and got things like width:700px, prev:372, and left: 375. You must update the numbers in each section to move all the elements to their correct location.
Hopefully, these adjustments work for you too. If you need more detail, just email me and I can update the post. You can see my final results here.
December 17th, 2009 at 12:25 pm
What about modifying the thumbnail proportions? Can this be done. I want horizontal images versus a square. Thanks!
December 18th, 2009 at 10:33 am
Kim, I have no idea. You should post a message in the zenphoto forum or just look at the source code. I just looked at the source code to fix my issue. Good luck!
January 6th, 2010 at 12:14 am
Thanks for the info. I worked great!! It took me a little bit to figure out what you meant in Step 3.