Modify WordPress Plugin Shashin Default Thumbnail Size
Posted by alex in Insights at 1:54 PMI have been using the Shashin WordPress plugin for awhile now to display my Google Picasa image galleries. This plugin basically generates pages on your site that embed the images from your Picasa image galleries. So far I have been really satisfied with the plugin and tried numerous other Picasa plugins before settling on this one. One thing I needed to change because of the layout of my site was the default size for the album thumbnails which is 160 pixels. Below I describe how to modify this size so you can display more albums in a smaller amount of space.
Modify Shashin WordPress Plugin Google Picasa Album Thumbnail Size:
The Shashin plugin folder located in the “wordpress-root/wp-content/plugins/shashin” has a file with variables that can easily be changed. You will need to modify Shashin.php directly on the server or by modifying the file and then uploading the file using FTP to your server. The full path to the file is below.
Shashin Plugin File Modification Path:
/path/to/wordpress/root/wp-content/plugins/shashin/Shashin.php
On line 55 of the Shashin.php file is the setting for album thumbnails and while Google Picasa may only provide these thumbnails in 160px160px there is no reason you cannot force them smaller. This can be done by modifying line 55 in the Shashin.php file. In the example below I modified the default of 160 to 80 to cut the album thumbnail size in half.
Shashin.php Line 55 Picasa Album Thumbnail Size:
define('SHASHIN_ALBUM_THUMB_SIZE', 80); // Picasa offers album thumbnails at only 160x160
That is really it. Modify the thumbnail size to whatever pixel width and height that you want the Picasa album thumbnails to display as.
- Modify WordPress Admin Plugin To Display As A WP Admin Dashboard Widget Previously I wrote an article that detailed modifying the WordPress...
- WordPress Error Reporting Plugin: Modify Error Email Details On accident today I discovered a really cool plugin for...
- WordPress Plugin To Display Blogroll Links By Category On Any Page Or Post Working on a project for a client a couple days...
- Youtube With Fancy Zoom WordPress Plugin Not Working Over HTTPS After FORCE_SSL_ADMIN Set I recently installed the Youtube With Fancy Zoom WordPress plugin...
- WordPress Plugin: QuickCode Quick Reference Information I typically post a lot of code or Linux shell...
Tags: album, gallery, google, images, picasa, pixels, plugin, shashin, Shashin.php, SHASHIN_ALBUM_THUMB_SIZE, WordPress


























Entries (RSS)