WordPress.org

Forums

Participants Database
[resolved] Thumbnail Sizing Issues (3 posts)

  1. niutak
    Member
    Posted 2 years ago #

    On the previous version I had the main page thumbnails set at 100px and then when you opened up each participant's profile I had these thumbnails set at 300px and it was prefect. Now it appears he pics on the individual pages are attached to the same css code as the thumbnails on the main page. So now I am stuck with the same size on both. 100 works on the main page but way too small on my individual pages. Why so many changes and issues with this version. Can this be changed and how do I do it? I'd like to get it back to 100px on the main page and 300px on the individual pages.

    http://wordpress.org/extend/plugins/participants-database/

  2. xnau
    Member
    Plugin Author

    Posted 2 years ago #

    niutak,

    I'm sorry about this...there ended up being some changes to the CSS that will be more helpful in the long run, but I knew it would change things for some people.

    What you need to do is add rules like this to your theme stylesheet:

    For the list:

    #content pdb.list .image-field-wrap img {
        height: 100px;
    }

    For the single record:

    #content .pdb-single .image-field-wrap img {
        height: 300px;
    }

    You see that what I did was make it so that the CSS class of the wrapper div is related to the shortcode that was used. The #content ID is needed to override the plugin stylesheet. The width will be 'auto' so you don't have to set that. If your images end up distorted, then add "width:auto;" to each one so the width follows the height proportionally.

    Hope that gets you set up.

  3. niutak
    Member
    Posted 2 years ago #

    Great, I will forward to my designer and reply back as soon as she can try this out so I can let you know our results.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Participants Database
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic