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) »
  • Override home page with CIVICRM_UF_WP_BASEPAGE in wordpress is not working
Pages: [1]

Author Topic: Override home page with CIVICRM_UF_WP_BASEPAGE in wordpress is not working  (Read 748 times)

lee

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.2.16
  • CMS version: wordpress 3.8.1
  • MySQL version: 5.6.14
  • PHP version: 5.4.4.
Override home page with CIVICRM_UF_WP_BASEPAGE in wordpress is not working
April 04, 2014, 01:29:56 pm
I am trying to change the default civi template from home page to a new template that I have set up. I updated 'civicrm.settings.php'  with:

define( 'CIVICRM_UF_WP_BASEPAGE', 'mytemplate');

mytemplate being the name of my template. I have tried to do this with the filename also as it seems unclear in the docs which to use. Doesn't work either.

It is still defaulting to index.php (home page).

Any idea how I can get this override to take place.

Thanks.

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: Override home page with CIVICRM_UF_WP_BASEPAGE in wordpress is not working
April 04, 2014, 05:07:43 pm

this setting has now moved to the UI and is now part of the wp admin settings

http://wordpress.demo.civicrm.org/wp-admin/admin.php?page=CiviCRM&q=civicrm/admin/setting/uf&reset=1

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

lee

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.2.16
  • CMS version: wordpress 3.8.1
  • MySQL version: 5.6.14
  • PHP version: 5.4.4.
Re: Override home page with CIVICRM_UF_WP_BASEPAGE in wordpress is not working
April 07, 2014, 09:10:52 am
Whereabouts in the settings. I have tried 'administer' > 'system settings' > 'directories' but I haven't had any luck.

And can the path be a template file within the theme?

Thanks

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Override home page with CIVICRM_UF_WP_BASEPAGE in wordpress is not working
April 07, 2014, 04:12:19 pm
Administer > System Settings > CMS Database Integration

lee

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.2.16
  • CMS version: wordpress 3.8.1
  • MySQL version: 5.6.14
  • PHP version: 5.4.4.
Re: Override home page with CIVICRM_UF_WP_BASEPAGE in wordpress is not working
April 08, 2014, 08:05:01 am
WordPress Users Table Name? Seems like that should be 'wp_users'.

Don't think that has anything to do with templates.

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Override home page with CIVICRM_UF_WP_BASEPAGE in wordpress is not working
April 08, 2014, 04:27:20 pm
@lee

You are fairly new to the forum, and so perhaps to CiviCRM.  The recommendation for all new installs is 4.4.  Is this a new install and if so, can you explain why you have chosen 4.2.16 rather than the latest version of 4.4?
   
In 4.4 the page you have been referred to also includes:
Quote
WordPress Base Page    http://wordpress.demo.civicrm.org/   _____________________

By default, CiviCRM will generate front-facing pages using the home page at http://wordpress.demo.civicrm.org/ as its base. If you want to use a different template for CiviCRM pages, set the path here.

I don't know when that change happened

lee

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.2.16
  • CMS version: wordpress 3.8.1
  • MySQL version: 5.6.14
  • PHP version: 5.4.4.
Re: Override home page with CIVICRM_UF_WP_BASEPAGE in wordpress is not working
April 09, 2014, 08:44:45 am
Hi Joanne,

I am new to civi, yes. That version was what was available when I started the project. I will update.  Thanks for your help.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Override home page with CIVICRM_UF_WP_BASEPAGE in wordpress is not working

This forum was archived on 2017-11-26.