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) »
  • Contribution Layout
Pages: [1]

Author Topic: Contribution Layout  (Read 1029 times)

aeranis

  • Guest
Contribution Layout
August 13, 2009, 11:54:32 pm
Hi,

I am not a really a developer, nor do I know much PHP.  In other words, I don't really know what I'm doing, so this should be a fairly simple question to answer for most of you-

I am trying to customize the layout of my contribution form.  In particular, I would like the radio contribution buttons to align horizontally instead of vertically, but I can't figure out how to do this.  I have looked at main.tpl and see form.amount called, but I am pretty much lost outside of that.

Thanks,
Arman

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Contribution Layout
August 14, 2009, 12:07:18 am
Arman :
Quote
I would like the radio contribution buttons to align horizontally instead of vertically

You might want to apply this patch :
Code: [Select]
Index: CRM/Contribute/Form/Contribution/Main.php
===================================================================
--- CRM/Contribute/Form/Contribution/Main.php (revision 23283)
+++ CRM/Contribute/Form/Contribution/Main.php (working copy)
@@ -408,7 +408,7 @@
                 $elements[] =& $this->createElement('radio', null, '',
                                                     ts('Other Amount'), 'amount_other_radio');
 
-                $this->addGroup( $elements, 'amount', $title, '<br />' );
+                $this->addGroup( $elements, 'amount', $title );

You also might want to use custom template to achieve this. For more details, refer : http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in,+Profile,+Contribution+and+Event+Registration+Screens

-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contribution Layout

This forum was archived on 2017-11-26.