Support » Plugin: My Custom Functions » HELP! After putting some custom code my page doesn´t word anymore

  • Resolved mcaso

    (@mcaso)


    Good afternoon

    I have just put some code in order to have some custom fields in give plugin ( I took it the code from the website for the plugin).
    Now when I tried to enter again in the admin or anywhere else I get the following message:

    Error HTTP 500
    Es extraño… el sitio web no puede mostrar esta página
    El sitio puede estar en mantenimiento o tener un error de programación.
    Prueba esto
    Vuelve a la última página
    Intenta ponerte en contacto con el propietario del sitio web

    Please I need some help to revert this situation, it is a test page but I need to show it ASAP.

    Thanks a lot in advance
    Marcela

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Space X-Chimp

    (@arthur-gareginyan)

    Hello Marcela,

    Please read the instructions here.

    Have a nice day!

    mcaso

    (@mcaso)

    Thank you so much Arthur for your answer. Now I working again.

    Have a nice day
    Marcela

    Plugin Author Space X-Chimp

    (@arthur-gareginyan)

    You’re welcome, Marcela! 🙂

    Have a nice day!

    mcaso

    (@mcaso)

    Hi Arthur

    The site is working but as soon I put the code again (see below) is not working any more.
    I don’t know if you can tell me why is not working, I also send a message to the give plugin people.

    Thanks a lot in advance
    Marcela

    function give_myprefix_custom_form_fields( $form_id ) {
    // Only display for forms with the IDs “754” and “578”;
    // Remove “If” statement to display on all forms
    // For a single form, use this instead:
    // if ( $form_id == 754) {
    $forms = array( 73, 488 ); ?>
    <div id=”give-referral-wrap”>
    <label class=”give-label” for=”give-referral”><?php _e( ‘How did you hear about GDI?:’, ‘give’ ); ?> <span class=”give-tooltip icon icon-question” data-tooltip=”<?php _e( ‘Please take a second to tell us how you first heard about Girl Develop It.’, ‘give’ ) ?>”></span>
    </label>
    <textarea class=”give-textarea” name=”give_referral” id=”give-referral”></textarea>
    </div>
    <?php endif;

    }
    add_action( ‘give_after_donation_levels’, ‘give_myprefix_custom_form_fields’, 10, 1 );

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HELP! After putting some custom code my page doesn´t word anymore’ is closed to new replies.