Widget CSS
-
Hi Chris,
a very cool plugin, I tried more of them but yours is the best one – many options to customize.Question 1 – how can I style the widget (in cycle mode)? My firebug shows wpmtst ids but my changes don’t take effect. Are there some other specific selectors?
I want to add background-color, italic style font, justify, add a line between the testmonial text and client info.
Question 2 – how can I specify the size of the thumbnail when using the shortcode, not the widget?
Thank you.
-
Hi Romanko,
Thanks! It’s been fun to work on. Too many options sometimes 😉
Re: Question 1
Where are you putting your CSS?
It’s likely you will need to increase the specificity so
.testimonial-widget .content { background: transparent; }needs to become
.wpmtst-widget .testimonial-widget .content { background: transparent; }This is because the widget stylesheet is loaded in the footer instead of the header. That’s not a best practice and I plan to rectify that soon.
Another option is to skip the widget stylesheet (admin > Testimonials > Settings) and style it completely in your theme using the plugin’s
/css/wpmtst-widget.cssas a guide. I often do this myself, actually.Re: Question 2
Currently, the shortcode uses the default thumbnail size (admin > Settings > Media) to remain consistent with your other posts.
By the way, the widget thumbnail size is hardcoded at 75×75 for now.
I am working on several improvements, one of which is the option to specify the image size (thumbnail, medium, large, any size your theme adds, and custom).
Thank you very much, it worked. Looking forward to improvements 🙂
Hi Romanko,
I just installed this plugin today. Your Question No. 2:I use this in Child Theme CSS:
.testimonial img { width: 64px; border: none; padding: 0; }
The topic ‘Widget CSS’ is closed to new replies.