From f5a49efcc2ec0d9d75c2d4a9aa3470439b0c294f Mon Sep 17 00:00:00 2001 From: Nenad Ticaric Date: Tue, 25 Aug 2015 19:36:27 +0200 Subject: [PATCH] be able to add a custom class to a quote --- woothemes-testimonials-template.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/woothemes-testimonials-template.php b/woothemes-testimonials-template.php index 91c6236..7be5bc8 100644 --- a/woothemes-testimonials-template.php +++ b/woothemes-testimonials-template.php @@ -50,6 +50,7 @@ function woothemes_testimonials ( $args = '' ) { 'before_title' => '

', 'after_title' => '

', 'category' => 0, + 'quote_class' => '' ) ); $args = wp_parse_args( $args, $defaults ); @@ -101,6 +102,10 @@ function woothemes_testimonials ( $args = '' ) { $css_class .= ' no-image'; } + if ( isset( $args['quote_class'] ) && $args['quote_class'] != "" ) { + $css_class .= ' ' . $args['quote_class']; + } + setup_postdata( $post ); $author = '';