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 »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Change Contribute button label?
Pages: [1]

Author Topic: Change Contribute button label?  (Read 7549 times)

MiamiRon

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Change Contribute button label?
February 18, 2008, 12:57:54 pm
I'm using CCRM for site memberships, not contributions. How can I change the button text from "Make Contribution" to something else, like Submit or Join?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Change Contribute button label?
February 18, 2008, 04:56:22 pm
You could do this by creating your own "translation" of CiviCRM and translating that string into one you want to see.

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Localisation

However, for a single string - it may not be worth the trouble. Your alternative is to modify this in the code. Look for that string in:

CRM/Contribute/Form/Contribution/Confirm.php
Protect your investment in CiviCRM by  becoming a Member!

MiamiRon

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: Change Contribute button label?
February 18, 2008, 05:21:20 pm
Thanks- that's what I did. :)

Barnacle

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 2
    • White Fuse Media
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.3
Re: Change Contribute button label?
August 14, 2013, 07:27:15 am
Hi,

This was annoying me so much that I wrote a tiny Drupal 7 module with an admin screen for configuring the text value of every contribution page's "Submit" button.

If anyone else would find this useful then I can make it available, but I'm not sure where best to do that?
--
http://whitefusemedia.com/

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: Change Contribute button label?
August 14, 2013, 10:13:46 am

might want to consider hosting on github (or your favorite code repository) and publishing it as an extension

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

Barnacle

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 2
    • White Fuse Media
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.3
Re: Change Contribute button label?
August 28, 2013, 06:33:30 am
Ok I've hosted it here:

https://github.com/whitefusemedia/wfm_civi_extras/

How/where do I publish it as an extension?
--
http://whitefusemedia.com/

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Change Contribute button label?
August 28, 2013, 11:04:54 am
Login to CiviCRM.org and then you can add your extension to the extensions directory: http://civicrm.org/extensions
Protect your investment in CiviCRM by  becoming a Member!

Fred

  • I post occasionally
  • **
  • Posts: 37
  • Karma: 1
  • CiviCRM version: 4.x
  • CMS version: Joomla 3.x
  • MySQL version: 5.x
  • PHP version: 5.x
Re: Change Contribute button label?
December 12, 2013, 02:34:07 pm
Quote from: Barnacle on August 14, 2013, 07:27:15 am
Hi,

This was annoying me so much that I wrote a tiny Drupal 7 module with an admin screen for configuring the text value of every contribution page's "Submit" button.

If anyone else would find this useful then I can make it available, but I'm not sure where best to do that?
Can this module be used with Joomla? If not, does anyone know of a similar solution for configuring the text values of contribution pages?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Change Contribute button label?
December 12, 2013, 02:46:07 pm
You might want to experiment with the built-in 'Word Replacements' feature (Administer > Customize > Word Replacements) if you're ok with a change that affects all contribution pages. I did a quick experiment replacing 'Contribute' - [x ] exact match. You'll want to check other (back-office) forms and pages to make sure this doesn't mess things up in other spots but off the top of my head I think that button is the only place where that specific word is used by itself.
Protect your investment in CiviCRM by  becoming a Member!

Fred

  • I post occasionally
  • **
  • Posts: 37
  • Karma: 1
  • CiviCRM version: 4.x
  • CMS version: Joomla 3.x
  • MySQL version: 5.x
  • PHP version: 5.x
Re: Change Contribute button label?
December 12, 2013, 08:31:58 pm
I found the 'Word Replacement' under Administer > Customize Data and Screens > Word Replacements, and have been able to use it to change 'Contribute' to 'Submit' on the contribution form, but I can't get it to change 'I am contributing on behalf of an organization.' to 'I am registering on behalf of an organization.', or to just change 'contributing' to 'registering'. Any suggestions on how to change 'I am contributing on behalf of an organization.' to 'I am registering on behalf of an organization.'?

Fred

  • I post occasionally
  • **
  • Posts: 37
  • Karma: 1
  • CiviCRM version: 4.x
  • CMS version: Joomla 3.x
  • MySQL version: 5.x
  • PHP version: 5.x
Re: Change Contribute button label?
December 12, 2013, 08:42:41 pm
I found it. The 'I am contributing on behalf of an organization.' text can be customized under the 'Manage Contribution Pages'  'title and settings' screen.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Change Contribute button label?

This forum was archived on 2017-11-26.