I am actually trying to set one single campaign page as a homepage. If the above isn’t possible, let me know how.
Hi Chandra,
Would you mind posting your code in a Gist on https://gist.github.com/?
Cheers,
Eric
Thanks for replying. Here is the file. I only changed the $campaign variable definition as it was throwing another set of errors.
https://gist.github.com/maharzan/95cc13583e3852f367cf85a1c5e1fdaf
I found an interesting thing as well. If we add the ID of an ended campaign, that seems to work pretty much ok. but if I keep the id of ongoing campaign its giving me a set of errors. You can check the errors here: http://run.beverlyvistapta.org/beverly-vista-run-for-success/
I am working on a client’s project.
Further, if I remove this line in charitable/templates/campaign/donate-link.php
if ( $campaign->has_ended() ) :
return;
endif;
the donation details appear without that animated svg and the Time left but still throws another error in charitable/includes/public/charitable-template-functions.php:395
if ( ‘same_page’ == charitable_get_option( ‘donation_form_display’, ‘separate_page’ ) ) {
charitable_get_current_donation_form()->render();
}
Fatal error: Uncaught Error: Call to a member function render() on boolean in /home/breakt58/public_html/run/wp-content/plugins/charitable/includes/public/charitable-template-functions.php:395 Stack trace: #0
-
This reply was modified 9 years, 7 months ago by
Chandra M.
Ah, so you’re using Reach?
If so, this template should work for you: https://gist.github.com/ericnicolaas/dd373a615d2a4c29642460fd4181bf6b
Ah, awesome! Thank you so much. 🙂