# give/4.16.0/templates/single-give-form.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.0. 52 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.0/code/templates/single-give-form.php
- Raw: https://pluginprobe.com/plugins/give/4.16.0/raw/templates/single-give-form.php
- Modified: 2020-03-31T00:14:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.0/code/templates/single-give-form.php#L10-L20`.

```php
<?php
/**
 * The Template for displaying all single Give Forms.
 *
 * Override this template by copying it to yourtheme/give/single-give-forms.php
 *
 * @package       Give/Templates
 * @version       1.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

get_header();

/**
 * Fires in single form template, before the main content.
 *
 * Allows you to add elements before the main content.
 *
 * @since 1.0
 */
do_action( 'give_before_main_content' );

while ( have_posts() ) :
	the_post();

	give_get_template_part( 'single-give-form/content', 'single-give-form' );

endwhile; // end of the loop.

/**
 * Fires in single form template, after the main content.
 *
 * Allows you to add elements after the main content.
 *
 * @since 1.0
 */
do_action( 'give_after_main_content' );

/**
 * Fires in single form template, on the sidebar.
 *
 * Allows you to add elements to the sidebar.
 *
 * @since 1.0
 */
do_action( 'give_sidebar' );

get_footer();

```
