• Ive got two things that I need some help on. The first is I would like to register a second thumbnail size. On the home page I’m going to display one testimonial using a small thumbnail and on the listing page I want to use a medium sized thumbnail.

    The second thing is for the listing page. I need to put a different css class on every second testimonial so i can lay it out such that the image alternates between being on the left and the right.

    Thanks for any advice you can give me.
    Ben

    http://wordpress.org/extend/plugins/tb-testimonials/

Viewing 1 replies (of 1 total)
  • Plugin Author Travis Ballard

    (@ansimation)

    Hi Ben,

    There’s an example in the documentation that shows how to add a new template tag. In the example we add a new image size and then use the template tag to display it. You can do the same thing but register 2 tags, one for each size image you want to use.

    The only drawback here is that you can’t use the conditional tags with user defined template tags. This is an enhancement I’ll be working on in a later release down the road.

    As for the CSS classes, the only way I can think of is to use CSS itself and use :nth-child(odd|even) to style them the way you like. Won’t work in all browsers but any modern browser should be able to do just fine with it.

    Thanks,
    Travis Ballard

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: TBTestimonials] Help with thumbnail sizes and css’ is closed to new replies.