WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: kPicasa Gallery] Love the plugin - I have a feature request (2 posts)

  1. codeblue2k
    Member
    Posted 4 years ago #

    I would love the option of making the photos in a album square like they are on the albums page.

    Other then that keep up the great work!!

  2. j.org
    Member
    Posted 4 years ago #

    Hey codeblue2k,

    I guess you just want to display a square detail of the picture, clipping everything else, like this? If that's case the solution is CSS. Only for other reasons I modified the plugin code a bit, but the gallery view is handled by css. You either just edit the style file provided with the plugin (which gets overridden on updates) or modify your themes style.css. I think you need something like this:

    table#kpg-pictures td .kpg-thumb img {
    	left:-15px;
    	position:relative;
    	top:-15px;
    }
    table#kpg-pictures td .kpg-thumb {
    	border:1px solid black !important;
    	height:80px;
    	overflow:hidden;
    	position:relative;
    	width:80px;
    }

    The second rule makes the surrounding div square (80x80) and says everything which overlaps should be clipped, the first rule shifts the picture a bit to the top and to the left to make the shown part more interesting.

    Hope this helped a bit, maybe Guillaume can include some similar in his standard style file.

    ~~~Cheers

Topic Closed

This topic has been closed to new replies.

About this Topic