Hi Yael,
The content-campaign.php
is the one that defines the template for the campaign page. But it’s a hook-based template, so what you actually want is a way to change which hooks are called at which points.
The best place to look for this is in includes/public/charitable-template-hooks.php
. If you scroll down you will see that there are a lot of comments throughout the file to explain what each section is doing. And you will see lines of code like this:
add_action( 'charitable_campaign_content_before', 'charitable_template_campaign_description', 4 );
add_action( 'charitable_campaign_content_before', 'charitable_template_campaign_summary', 6 );
This particular example shows that the campaign description and stats summary are added before the campaign content. To switch their order, you could add this to your theme’s functions.php
file:
remove_action( 'charitable_campaign_content_before', 'charitable_template_campaign_description', 4 );
add_action( 'charitable_campaign_content_before', 'charitable_template_campaign_description', 8 );
That’s just a very simple example, but hopefully it’s helpful in showing how to modify the campaign page.
Cheers,
Eric