0

I would like to use a custom display for some civicrm page as error contribution form pages.

So i have created a template wordpress page named civicrm, fill "civicrm" in WordPress Base Page field in admin.

I have inserted the shortcode to insert a contribution form But when i validate the form on frond end i am not redirected to the good url (the one with base page i have specified)

Could you help me ?

Thanks

1

2 Answers 2

1

I would suggest to try telling CiviCRM what is your base template.php pasting this in your functions.php

add_filter( 'civicrm_basepage_template', 'my_basepage_template' ); 

function my_basepage_template( $template ) { 
return 'page.php'; 
} 

Replace page.php with the page template in use by your theme.

If that doesn't work, try changing to the default WordPress theme (Twenty Fifteen) and try submitting the form in the Contribution page you have created and report back.

1
  • 1
    Just to say it'll need to be 4.6 for this to work. Sep 22, 2015 at 10:35
1

It won't actually redirect you to the URL of the WordPress Base Page. What it will do is append a query string to the URL of the page that had the shortcode, and then it will use the content of the WordPress Base Page.

See my answer to my own question here for more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.