CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Specify which WordPress theme file to use
Pages: [1]

Author Topic: Specify which WordPress theme file to use  (Read 712 times)

TimHuynh

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: WordPress 3.4.1
  • MySQL version: not sure
  • PHP version: not sure
Specify which WordPress theme file to use
September 05, 2012, 07:59:05 am
I have a Contribution Page form that is embedded into a WordPress post. The post views all right but when I click the confirm button, I get taken to the home page (ie, index.php). The problem is that the home page is not designed/built to show dynamic content: is there any way I get can get pages/posts (after the initial form) to use other theme files?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Specify which WordPress theme file to use
September 05, 2012, 08:34:12 am

can u check and apply the patch here:

http://issues.civicrm.org/jira/browse/CRM-10682

please update this topic if you do so. I'd like to apply it to 4.2.1

thanx

lobo

A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

TimHuynh

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: WordPress 3.4.1
  • MySQL version: not sure
  • PHP version: not sure
Re: Specify which WordPress theme file to use
September 05, 2012, 11:25:21 am
Quote from: Donald Lobo on September 05, 2012, 08:34:12 am

can u check and apply the patch here:

http://issues.civicrm.org/jira/browse/CRM-10682

please update this topic if you do so. I'd like to apply it to 4.2.1

thanx

lobo

I got it to work for me. For posterity (ie, the people who have, or will have, the same problem):
  • Go to wp-content/plugins/civicrm/ and open the civicrm.settings.php file
  • Anywhere in the code, paste define( 'CIVICRM_UF_WP_BASEPAGE', 'single'); where single is the name of the theme file that you want to use (eg, page to use page.php for the after-submit pages and so on) or even the WordPress slug of a page/post that you want to use though template files make more sense

I think this option should be way more prominent and possibly set a descending-priority of defaults like single.php, then page.php, then index.php.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Specify which WordPress theme file to use
September 05, 2012, 03:59:59 pm

any chance you can enhance the patch to implement the descending priority list of defaults?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

TimHuynh

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: WordPress 3.4.1
  • MySQL version: not sure
  • PHP version: not sure
Re: Specify which WordPress theme file to use
September 21, 2012, 10:17:23 am
Okay this fix does not seem to be working anymore. I'm using CiviCRM 4.1.3 after it was re-installed by someone else. I made the change the civicrm.settings.php file and the after-submission pages still use the index.php file. Can anybody help?
« Last Edit: September 21, 2012, 10:20:07 am by TimHuynh »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Specify which WordPress theme file to use

This forum was archived on 2017-11-26.