Support » Theme: Canape » Display more than 3 testimonials on homepage

Viewing 3 replies - 1 through 3 (of 3 total)
  • That option is hard coded into the theme it looks like. To modify it, you’d need to create a child theme:

    Then copy over /template-parts/content-front-testimonial.php into your child theme using the same directory structure. Open up that file and look for the following code at the top

    $jetpack_options = get_theme_mod( 'jetpack_testimonials' );
    		$testimonials = new WP_Query( array(
    			'post_type'      => 'jetpack-testimonial',
    			'posts_per_page' => 3,
    			'no_found_rows'  => true,
    		) );

    Modify the 3 value according to the number of testimonials you want to display on the front page of your site.

    Thank you for the reply. I am no expert so excuse me for what could be a silly question, could I not just edit the main ‘content-front-testimonial.php’ file to increase it here?
    To save creating a child theme?


    Moderator James Huff


    Volunteer Moderator

    You could, but the next time the theme updates, the file will be replaced, and therefore your changes will be lost.

    The Child Theme system was specifically created to avoid this, so that you can keep only your modified files in the Child Theme, while the Parent Theme can update safely.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.