Answers.Body: <p>Short of figuring out where the &quot;CiviCRM&quot; page title was coming from in the auto-generated output, I was able to set the name of the Contribution &gt; Confirmation page by adding a script in the footer (using the &quot;wp_footer&quot; hook in the child theme's functions.php) that checks the URL for a query string value associated with the Confirmation page (&quot;_qf_Confirm_display&quot;) when the page ID is that of the Contribute / Donate page, and if that value is &quot;true,&quot; overwrites the h1 and the document title with what I want:</p>
  <pre><code>add_action( 'wp_footer', 'change_donate_conf_title');
  function change_donate_conf_title() {
      if (is_page(10911)) {
          $checkConf = $_GET['_qf_Confirm_display'];
          if ($checkConf === 'true') {
              echo &quot;&lt;script type='text/javascript'&gt;
                  document.title = 'Review Your Contribution';
                  document.querySelector('h1').innerHTML = 'Review Your Contribution';
              &lt;/script&gt;&quot;;
          }
      }
  }
  </code></pre>
  <p>I hope this helps someone else down the road.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-11T15:12:34.650Z
Answers.Text: I accepted my own answer here because it allowed me to change the name of ONLY the confirmation page.  However, it is worth noting that Christian's last comment on the OP was valid; the "Shortcode Display Mode" was set to "Legacy Base Page Mode."  Changing that should have passed the Public Name from the Form settings to the Confirmation page.
Answers.UserDisplayName: Scott H
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-09T20:58:49.757Z
Answers.LastActivityDate: 2022-11-09T21:01:32.400Z
Answers.LastEditDate: 2022-11-09T21:01:32.400Z
Answers.UserDisplayName: Scott H
Body: <p>I've seen a lot of similar questions to this one, but not exactly this question.  When one is directed to <a href="https://www.example.com/civicrm/contribute/transact/?_qf_Confirm_display=true&amp;qfKey=CRMContributeControllerContributionabclongstringherexyz" rel="nofollow noreferrer">https://www.example.com/civicrm/contribute/transact/?_qf_Confirm_display=true&amp;qfKey=CRMContributeControllerContributionabclongstringherexyz</a>, the page title in the  shows as &quot;CIVICRM&quot;.  I tried to change this via functions.php with the_title hook, but it replaces every title in the menu as well.  Any suggestions appreciated.</p>
  <p><a href="https://i.sstatic.net/Wb8Zg.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Wb8Zg.jpg" alt="Screenshots of Page Titles - both real and on wpmaster demo site" /></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-08T19:52:11.600Z
Comments.Text: doesn't it shows Contribution page title?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-09T00:59:30.887Z
Comments.Text: Can you try to replicate this (the title showing as CIVICRM instead of the public page title) on wpmaster: https://wpmaster.demo.civicrm.org/
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-09T00:59:59.427Z
Comments.Text: I just tried and it seems to work as expected both with and without a specified public page title.
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-09T15:10:27.303Z
Comments.Text: @PradeepNayak - the Contribution page does, but we are using the "Use a confirmation page" option, and the confirmation page (which appears after one clicks "Review Your Contribution" displays "CIVICRM" as the page title.
Comments.UserDisplayName: Scott H
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-09T15:10:32.180Z
Comments.Text: @LarsSG - can you tell me WHERE you are able to specify / not specify a title for the Review Your Contribution (Confirmation) page?
Comments.UserDisplayName: Scott H
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-09T15:27:19.190Z
Comments.Text: @LarsSG - On the wpmaster site, the Contribution page shows "Contribution Page" as the h1 and "Help Support CiviCRM!" as an h2, but then on the Confirmation page it displays "Help Support CiviCRM!" as the h1.
Comments.UserDisplayName: Scott H
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-09T15:52:42.783Z
Comments.Text: The confirmation page and first page should have the same title, which is set on the first page of the contribution page configuration (either the title of the public title, if present).
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-09T15:53:36.137Z
Comments.Text: Can you post a screenshot from wpmaster of what the issue is? I'm not seeing what you're seeing.
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-09T18:24:59.080Z
Comments.Text: @LarsSG - I've updated the screenshot to reflect both the live application and the wpmaster demo.  I just want to change the h1 of the Confirmation page in my live application.
Comments.UserDisplayName: Scott H
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-09T19:23:55.963Z
Comments.Text: Are you using a Shortcode to show the Contribution Page?
Comments.UserDisplayName: Christian Wach
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-09T19:49:09.170Z
Comments.Text: @ChristianWach - Yes, in this case the original developer set up the Donate page using the civicrm shortcode.  Is there an attribute that allows for setting a title?  I didn't see one in documentation.
Comments.UserDisplayName: Scott H
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-10T10:10:22.007Z
Comments.Text: In "CiviCRM" --> "Settings", what is your "Shortcode Display Mode" set to? I'm guessing "Legacy Base Page Mode". If so, set it to "Remain in Shortcode Mode".
Comments.UserDisplayName: Christian Wach
Tags: <wordpress><contributions>
Title: How to change the page title for the "Review Your Contribution" page in the WP version?
ThreadText: # How to change the page title for the "Review Your Contribution" page in the WP version?
  
  (Asked by: username_0 on 2022-11-08)
  
  I've seen a lot of similar questions to this one, but not exactly this question. When one is directed to <https://www.example.com/civicrm/contribute/transact/?_qf_Confirm_display=true&qfKey=CRMContributeControllerContributionabclongstringherexyz>, the page title in the shows as "CIVICRM". I tried to change this via functions.php with the\_title hook, but it replaces every title in the menu as well. Any suggestions appreciated.
  
  [![Screenshots of Page Titles - both real and on wpmaster demo site](https://i.sstatic.net/Wb8Zg.jpg)](https://i.sstatic.net/Wb8Zg.jpg)
  
  **Tags:** wordpress, contributions
  
  > **Comments:**
  > **username_1**: doesn't it shows Contribution page title?  
  > **username_2**: Can you try to replicate this (the title showing as CIVICRM instead of the public page title) on wpmaster: https://wpmaster.demo.civicrm.org/  
  > **username_2**: I just tried and it seems to work as expected both with and without a specified public page title.  
  > **username_0**: @PradeepNayak - the Contribution page does, but we are using the "Use a confirmation page" option, and the confirmation page (which appears after one clicks "Review Your Contribution" displays "CIVICRM" as the page title.  
  > **username_0**: @LarsSG - can you tell me WHERE you are able to specify / not specify a title for the Review Your Contribution (Confirmation) page?  
  > **username_0**: @LarsSG - On the wpmaster site, the Contribution page shows "Contribution Page" as the h1 and "Help Support CiviCRM!" as an h2, but then on the Confirmation page it displays "Help Support CiviCRM!" as the h1.  
  > **username_2**: The confirmation page and first page should have the same title, which is set on the first page of the contribution page configuration (either the title of the public title, if present).  
  > **username_2**: Can you post a screenshot from wpmaster of what the issue is? I'm not seeing what you're seeing.  
  > **username_0**: @LarsSG - I've updated the screenshot to reflect both the live application and the wpmaster demo.  I just want to change the h1 of the Confirmation page in my live application.  
  > **username_3**: Are you using a Shortcode to show the Contribution Page?  
  > **username_0**: @ChristianWach - Yes, in this case the original developer set up the Donate page using the civicrm shortcode.  Is there an attribute that allows for setting a title?  I didn't see one in documentation.  
  > **username_3**: In "CiviCRM" --> "Settings", what is your "Shortcode Display Mode" set to? I'm guessing "Legacy Base Page Mode". If so, set it to "Remain in Shortcode Mode".  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2022-11-09. Score: 1 | Accepted answer
  
  Short of figuring out where the "CiviCRM" page title was coming from in the auto-generated output, I was able to set the name of the Contribution > Confirmation page by adding a script in the footer (using the "wp_footer" hook in the child theme's functions.php) that checks the URL for a query string value associated with the Confirmation page ("_qf_Confirm_display") when the page ID is that of the Contribute / Donate page, and if that value is "true," overwrites the h1 and the document title with what I want:
  add_action( 'wp_footer', 'change_donate_conf_title');
  function change_donate_conf_title() {
      if (is_page(10911)) {
          $checkConf = $_GET['_qf_Confirm_display'];
          if ($checkConf === 'true') {
              echo "";
          }
      }
  }
  
  I hope this helps someone else down the road.
  
  > **Comments:**
  > **username_0**: I accepted my own answer here because it allowed me to change the name of ONLY the confirmation page.  However, it is worth noting that Christian's last comment on the OP was valid; the "Shortcode Display Mode" was set to "Legacy Base Page Mode."  Changing that should have passed the Public Name from the Form settings to the Confirmation page.  
  
  ---
  
  