• Resolved FA1LURESCENE

    (@fa1lurescene)


    Hi,

    I was writing to inquire on two specific issues.

    Great Work on the plug-in overall. It worked flawlessly and does exactly what I was looking to do.

    First, is there a way to make the thumbnail images larger? I know you can change their dimensions in the associated .php file, but it pixelates them. I was hoping to be able to customize them to get pictures twice as big as they are currently. Does this reside in the plug-in? Or is this dictated by the pictures available through the API?

    Secondly, the list of contact and other contact information elements such as website, phone, gender, etc. they are all lowercase, while it would look more professional to have each of the first letters capitalized. How do I go about doing this?

    Thanks!
    /Chris.

    http://ww.wp.xz.cn/plugins/congresslookup/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    Thank you for your kind words about our plugin 😀

    Both the labels and the images come from the Sunlight Labs API so we have no control over the image size.

    But you can use the pseudoclass :first-letter to fix the capitalization. Add the following to your theme style.css

    .legislator-contact li:first-letter {
        text-transform: capitalize;
    }

    Let me know if you need any further assistance.

    Thread Starter FA1LURESCENE

    (@fa1lurescene)

    OK, I fixed the uppercase letter issue. Although I couldn’t find the source, I figured it would be easier to simply edit the getdata.php, and inserted a replacement variable for each $key value and used the string operator ucwords() to make this change. So, I’m just wondering about the size of the thumbnails, although I will check out the API to see if I can find out any additional info. Thanks.

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    FA1LURESCENE,

    Just be aware that when we update the plugin the getdata.php will be changed and you’ll have to redo your coding. If you are using a child theme (and almost everyone should 🙂 you can add the pseudoclass to the child style.css and not have to worry about updates.

    The images come directly from Sunlight Labs API and we have no control over that. But do check with them.

    FYI: There is a new comprehensive Sunlight API that we currently are not using. When we make the switch I’ll look to see if they offer more sizes for the images.

    Thread Starter FA1LURESCENE

    (@fa1lurescene)

    Check the Sunlight API’s, and their Legislator pictures come in a medium and large. I would be interested in medium (100×125). I tried to replace the instances I saw for the calls and checks on picture downloads and reference the medium, in addition to updating any references in the getdata.php with either path or size of pictures as necessary. I received an error, so I’m curious how to change this from the small, to the medium sized photos? Thanks!

    Thread Starter FA1LURESCENE

    (@fa1lurescene)

    Cool, I’ll keep an eye out. They do have two other libraries so would be awesome if it was made to be a user selection with the admin of the plug-in. Either way, you’ve got me on the right track and I’ll figure it out. Great Job on the plug-in.

    Also, your CSS solution to capitalization was must better than my own. I definitely over thought it. LOL…

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘2 Questions… (Customization)’ is closed to new replies.