Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kerry

    (@bluenotes)

    In the pro version you can do this with the shortcode. However in the free version here on the repo you would need to use on of the filters such as bne_testimonials_single_structure(). This filter allows you to customize the structure of the testimonial output.

    An example of it used can be found on the following gist.

    https://gist.github.com/bnecreative/2f67bf586935c8b3440a

    Thread Starter stev95

    (@stev95)

    so i add this to my theme functions.php file?

    Plugin Author Kerry

    (@bluenotes)

    Correct, within that function you could move around the pieces to change the order. So to have the image/name/company above the message, you would have it look like the following:

    function custom_testimonials_single_structure( $shortcode_output, $options) {
    	// Empty String
    	$shortcode_output = '';
    
    	// Testimonial Content
    	$shortcode_output .= bne_testimonials_the_content( $options );
    
    	// Testimonial Thumbnail
    	if ($options['image'] != 'false') {
    		$shortcode_output .= bne_testimonials_featured_image( $options );
    	}
    
    	// Testimonial Title
    	if ($options['name'] != 'false') {
    		$shortcode_output .= bne_testimonials_title( $options );
    	}
    
    	// Testimonial Tagline and Website URL
    	if (!empty($options['tagline']) || !empty($options['website_url'])) {
    		$shortcode_output .= bne_testimonials_details( $options );
    	}
    
    	return $shortcode_output;
    }
    add_filter('bne_testimonials_single_structure','custom_testimonials_single_structure', 10 , 2);
    
    Thread Starter stev95

    (@stev95)

    Thank you so much it worked!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I place Image, Name and Company after testimonial’ is closed to new replies.