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 »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • How to create Wordpress template for Opt Out URL
Pages: [1]

Author Topic: How to create Wordpress template for Opt Out URL  (Read 1719 times)

AndyHarkness

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
    • Andy's Blog
  • CiviCRM version: 4.5.0
  • CMS version: Wordpress 4.0
  • MySQL version: 5.1.61
  • PHP version: 5.3.3
How to create Wordpress template for Opt Out URL
April 08, 2013, 03:01:22 pm
When a subscriber opts out using action.optOuturl they are being sent to a page that uses a Wordpress template I have created called page-home.php. The opt-out screen for the user looks pretty awful using this template. I tried to create a new template in Wordpress called page-civicrm.php, but this does not seem to work. Anyone got any tips for changing the page template for the opt out URL in Wordpress?

Here is the general URL structure I have to work with:

http://SOMESITE.COM/?page=CiviCRM&q=civicrm/mailing/optout&reset=1&jid=9&qid=10&h=6f14f91e39633835

AndyHarkness

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
    • Andy's Blog
  • CiviCRM version: 4.5.0
  • CMS version: Wordpress 4.0
  • MySQL version: 5.1.61
  • PHP version: 5.3.3
Re: How to create Wordpress template for Opt Out URL
April 08, 2013, 03:30:05 pm
I now note I should change the civicrm.settings.php, so I have something like:

Code: [Select]
define( 'CIVICRM_UF_WP_BASEPAGE', 'myCustomCiviTemplate');
I have tried this and created a corresponding page template in Wordpress, but it does not appear to be working for me.

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: How to create Wordpress template for Opt Out URL
April 08, 2013, 03:45:49 pm

1. try creating a blank page called 'civi'

2. define( 'CIVICRM_UF_WP_BASEPAGE', 'civi');

3. goto: http://SOMESITE.COM/civi?page=CiviCRM&q=civicrm/mailing/optout&reset=1&jid=9&qid=10&h=6f14f91e39633835

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

AndyHarkness

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
    • Andy's Blog
  • CiviCRM version: 4.5.0
  • CMS version: Wordpress 4.0
  • MySQL version: 5.1.61
  • PHP version: 5.3.3
Re: How to create Wordpress template for Opt Out URL
April 09, 2013, 02:49:47 am
Great. That worked, thanks Donald!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • How to create Wordpress template for Opt Out URL

This forum was archived on 2017-11-26.