Answers.Body: <p>I installed the plugin Multiple Themes (<a href="https://wordpress.org/plugins/jonradio-multiple-themes/" rel="nofollow">https://wordpress.org/plugins/jonradio-multiple-themes/</a>) which allows me to set a different wp theme (e.g. Twenty Fifteen) just for the /?page=CiviCRM pages. Now I no longer have the replicated webform problem. The Contribution page appears has a different look &amp; feel but I'm ok with this. Thanks so much for the help Andrew. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-25T16:26:33.700Z
Answers.LastActivityDate: 2015-09-25T16:26:33.700Z
Answers.UserDisplayName: ddesign
Answers.Body: <p>Could you <a href="https://civicrm.org/blogs/haystack/working-civicrm-46-wordpress" rel="nofollow">set a Civi basepage</a> and apply an extremely cut down template to that specific page?</p>
  
  <p>You'd need to create a <a href="https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/" rel="nofollow">custom page template</a> in your theme directory. Create the file, then fill it with the most basic content possible. So something like:</p>
  
  <pre><code>&lt;?php /* Template Name: Basic Template */ ?&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;?php wp_head(); ?&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;?php 
      if ( have_posts() ) {
          while ( have_posts() ) {
              the_post(); 
                  the_content(); 
          } // end while
      } // end if
      ?&gt;
    &lt;?php wp_footer(); ?&gt;
    &lt;/body&gt;
  &lt;html&gt;
  </code></pre>
  
  <p>Then on the base page, change its template to 'Basic Template' and update.</p>
  
  <p>This would apply to <em>all</em> pages that Civi uses, so is inherently pretty hacky.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-14T16:52:49.470Z
Answers.Text: I just went to my civi basepage and I don't see a way to eliminate the Wordpress markup other than what I did on the Page I created that I refer to above in which I inserted Civi shortcode pointer to Contribute page I configured. not sure how the base page would help..
Answers.UserDisplayName: ddesign
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-14T17:28:33.587Z
Answers.Text: updated my comment to show how to add a custom template.
Answers.UserDisplayName: Andrew West
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-14T20:56:37.513Z
Answers.Text: ok, I did what you indicated.. the Enlightenment theme doesn't have a page.php but it does have an index.php so I created a file called index-plain.php and pasted in your code. I added in "echo 'Test';" where you have  // Post Content here. I edited the /CiviCRM base page, unchecked the enlightenment sidebar/feature hook boxes and selected 'Basic Template' from the Template dropdown, and indeed when I View page I just see "Test" printed at the top left. Forgive me for being such a newb but how do I now insert my Contribution form into this scenario? thank you..
Answers.UserDisplayName: ddesign
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-14T22:00:49.510Z
Answers.Text: If that's the base page being used by Civi pages, then when you go to your contribution form it should now display using this template. If not you can force it: use the code from 'The wpBasePage' at https://civicrm.org/blogs/haystack/working-civicrm-46-wordpress into your functions.php file - but change 'my-template-name.php' to 'index-plain.php'.
Answers.UserDisplayName: Andrew West
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-15T13:43:07.387Z
Answers.Text: I added the code you suggested (with index-plain.php replacement) to the Enlightenment theme's functions.php file and then opened my Contribution page by going to Manage Contributions and clicking on Links->Live Page but I just see my blank page with 'TEST' at the top - the Contribution form does not display..
Answers.UserDisplayName: ddesign
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-15T18:00:54.007Z
Answers.Text: oops, sorry - missed a function. Replace your "echo 'Test';" with "the_content();". I've updated my answer.
Answers.UserDisplayName: Andrew West
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-24T18:09:29.240Z
Answers.Text: thanks for catching that. I updated my index-plain.php with your updated code above.. (adding a '/' to the '<html>' at the end) and now I get this civi error: "Sorry but we are not able to provide this at the moment.
  Invalid value passed to getPayment function
  Return to home page."
Answers.UserDisplayName: ddesign
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-14T16:23:32.647Z
Answers.LastActivityDate: 2015-09-15T18:00:15.150Z
Answers.LastEditDate: 2015-09-15T18:00:15.150Z
Answers.UserDisplayName: Andrew West
Body: <p>On a Wordpress site which uses the theme "Enlightenment" I have used civicrm shortcode to embed a civi Contribution form on a wp page. All is well until I click the Confirm Contribution button.. the next page that is returned (Contribution confirmation page) has the form results replicated in the wp/enlightenment footer</p>
  
  <p>a part of the footer as it appears before contribution submission: <a href="https://i.sstatic.net/A2WYW.jpg" rel="nofollow noreferrer">https://i.sstatic.net/A2WYW.jpg</a></p>
  
  <p>same part of the wp footer as it appears after submission..
  <a href="https://i.sstatic.net/ByiCL.jpg" rel="nofollow noreferrer">https://i.sstatic.net/ByiCL.jpg</a></p>
  
  <p>I've studied the page source for these two cases and it appears that civi's 
  
  <p>It seems that the problem is related to the civContribution webform submission - any ideas on why the proper style inheritance would be lost after form submission and how/where I can fix this problem? </p>
  
  <p>I realize this is a case of Enlightenment probably doing something the civiContribute doesn't expect but since all is well before form submission I suspect that there could be a civi way to fix this.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-13T16:56:41.460Z
Comments.Text: I'm under the gun to get this working, and would be happy if I could just get the Contribution form working with connectivity to the CiviCRM db without the wordpress theme.. i.e. i'd be happy with plain html at this point. Is there any way to route entirely around the wordpress theme just for the Contribution webform?
Comments.UserDisplayName: ddesign
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-14T14:57:00.140Z
Comments.Text: What version of Civi are you using? There were significant improvements to WP integration in 4.6, if you aren't on that already...
Comments.UserDisplayName: Andrew West
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-14T16:11:31.623Z
Comments.Text: CiviCRM 4.6.8 and WP 4.2.4
Comments.UserDisplayName: ddesign
Tags: <civicontribute><wordpress><contributions><forms>
Title: Contribution form displaying in footer of WordPress site after form submission
ThreadText: # Contribution form displaying in footer of WordPress site after form submission
  
  (Asked by: username_0 on 2015-09-12)
  
  On a Wordpress site which uses the theme "Enlightenment" I have used civicrm shortcode to embed a civi Contribution form on a wp page. All is well until I click the Confirm Contribution button.. the next page that is returned (Contribution confirmation page) has the form results replicated in the wp/enlightenment footer
  
  a part of the footer as it appears before contribution submission: <https://i.sstatic.net/A2WYW.jpg>
  
  same part of the wp footer as it appears after submission..
  <https://i.sstatic.net/ByiCL.jpg>
  
  I've studied the page source for these two cases and it appears that civi's
  
  It seems that the problem is related to the civContribution webform submission - any ideas on why the proper style inheritance would be lost after form submission and how/where I can fix this problem?
  
  I realize this is a case of Enlightenment probably doing something the civiContribute doesn't expect but since all is well before form submission I suspect that there could be a civi way to fix this.
  
  **Tags:** civicontribute, wordpress, contributions, forms
  
  > **Comments:**
  > **username_0**: I'm under the gun to get this working, and would be happy if I could just get the Contribution form working with connectivity to the CiviCRM db without the wordpress theme.. i.e. i'd be happy with plain html at this point. Is there any way to route entirely around the wordpress theme just for the Contribution webform?  
  > **username_1**: What version of Civi are you using? There were significant improvements to WP integration in 4.6, if you aren't on that already...  
  > **username_0**: CiviCRM 4.6.8 and WP 4.2.4  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2015-09-25. Score: 2
  
  I installed the plugin Multiple Themes (<https://wordpress.org/plugins/jonradio-multiple-themes/>) which allows me to set a different wp theme (e.g. Twenty Fifteen) just for the /?page=CiviCRM pages. Now I no longer have the replicated webform problem. The Contribution page appears has a different look & feel but I'm ok with this. Thanks so much for the help Andrew.
  
  
  ---
  
  ### Answer by username_1 on 2015-09-14. Score: 1
  
  Could you set a Civi basepage and apply an extremely cut down template to that specific page?
  You'd need to create a custom page template in your theme directory. Create the file, then fill it with the most basic content possible. So something like:
  
  
    
      
    
    
      
    
    
  
  
  Then on the base page, change its template to 'Basic Template' and update.
  This would apply to all pages that Civi uses, so is inherently pretty hacky.
  
  > **Comments:**
  > **username_0**: I just went to my civi basepage and I don't see a way to eliminate the Wordpress markup other than what I did on the Page I created that I refer to above in which I inserted Civi shortcode pointer to Contribute page I configured. not sure how the base page would help..  
  > **username_1**: updated my comment to show how to add a custom template.  
  > **username_0**: ok, I did what you indicated.. the Enlightenment theme doesn't have a page.php but it does have an index.php so I created a file called index-plain.php and pasted in your code. I added in "echo 'Test';" where you have  // Post Content here. I edited the /CiviCRM base page, unchecked the enlightenment sidebar/feature hook boxes and selected 'Basic Template' from the Template dropdown, and indeed when I View page I just see "Test" printed at the top left. Forgive me for being such a newb but how do I now insert my Contribution form into this scenario? thank you..  
  > **username_1**: If that's the base page being used by Civi pages, then when you go to your contribution form it should now display using this template. If not you can force it: use the code from 'The wpBasePage' at https://civicrm.org/blogs/haystack/working-civicrm-46-wordpress into your functions.php file - but change 'my-template-name.php' to 'index-plain.php'.  
  > **username_0**: I added the code you suggested (with index-plain.php replacement) to the Enlightenment theme's functions.php file and then opened my Contribution page by going to Manage Contributions and clicking on Links->Live Page but I just see my blank page with 'TEST' at the top - the Contribution form does not display..  
  > **username_1**: oops, sorry - missed a function. Replace your "echo 'Test';" with "the_content();". I've updated my answer.  
  > **username_0**: thanks for catching that. I updated my index-plain.php with your updated code above.. (adding a '/' to the '<html>' at the end) and now I get this civi error: "Sorry but we are not able to provide this at the moment. Invalid value passed to getPayment function Return to home page."  
  
  ---
  
  