Support

Home Forums Event Espresso Premium Payment Option Instruction in paragraphs

Payment Option Instruction in paragraphs

Posted: December 16, 2014 at 7:51 pm

Viewing 5 reply threads


Lee Ming Tan

December 16, 2014 at 7:51 pm

Hi

We would like to have Instruction in each Payment Option to be shown in paragraphs.

Any idea to get this done?

Thanks.


Josh

  • Support Staff

December 17, 2014 at 1:19 pm

Hi Lee,

I can recommend hooking into using the AHEE__display_payment_gateways action hook.

Here is some example code that shows how you can add instructions to the payment options page:

add_action('AHEE__display_payment_gateways', 'my_custom_gateway_message');

function my_custom_gateway_message() {
    echo '

Your instructions go here

'; echo '

Another paragraph goes here

'; }


Lee Ming Tan

December 21, 2014 at 9:42 pm

Hi Josh,

This is not working, please see screen shot and let us know if there are any other solutions?

http://prntscr.com/5jktfw


Dean

December 22, 2014 at 4:28 am

Hi,

The code Josh listed would need to go into a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/) NOT the Payment Instructions field.

I hope that helps but let us know if you have any further questions regarding this topic.


Lee Ming Tan

December 22, 2014 at 4:54 pm

Dean,

Is there any other way to create paragraphs besides a separate plugin?


Lorenzo Orlando Caum

  • Support Staff

December 22, 2014 at 7:02 pm

Hi Lee Ming Tan, we recommend adding customizations to a site specific plugin as its easier to manage them.

Another place that they can be added is your child theme’s functions.php file but a site specific plugin is a better choice. Then if you need to add any other customizations, they’ll all be in one spot.

Does that help?


Lorenzo

Viewing 5 reply threads

The support post ‘Payment Option Instruction in paragraphs’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso