Is there a way to use HTML formatting of the Contribution Rules entered when setting up the payment processing fields for a bank account like Democracy Engine? For example, I can't seem to insert carriage returns or line breaks and am not immediately seeing any HTML options to format what gets entered here.
To edit the HTML formatting of the Contribution Rules, you'll need to edit the donation page's theme, rather than using code to pull the rules in from the payment processor settings page. If you haven't worked within the theme portion of your website, be sure to review the custom theme how-to video in our theme documentation.
We generally don't recommend customizing a donation page, as malformed edits can break the security of the donation page and cause problems with accepting donations. If you're comfortable moving forward with changes, here is how to do it:
To utilize HTML formatting, delete the code in line 245 of the donation page's theme, {{ page.donation.merchant_account.contribution_rules }}
That is the line of code that pules in the contribution rules from the payment processor settings page.
Replace it with the content you want to be shown in this area, including paragraph marks <p> and line breaks <br>. Properly configured HTML will be inserted in blue and plain text that will be seen on your site will be white in the theme editor.
Showing 2 reactions
Sign in with