Ville

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Generated iCal file has an empty first row, breaks import #1407763
    Ville
    Participant

    Hi,

    Please disregard the previous post, I found it. There was an empty linefeed after the closing php tag in my functions.php.

    regards,

    Ville

    in reply to: Hide shortcodes in imported events #1371717
    Ville
    Participant

    Hi Patricia,

    Thanks for your help. I actually found this plugin which allows regex search and replace without modifying any code:

    Real-Time Find and Replace


    With that it is trivial to get rid of the imported shortcodes.

    regards,

    Ville

    in reply to: How to prevent spam in RSVPs #1183391
    Ville
    Participant

    Hi Geoff,

    Thanks, that helped a bit, but all of those instructions in your link deal with html pages where inserting stuff into the header is trivial. I found a couple of examples of getting stuff into wp header, and they all seem to be different. I don’t know the wp way of dealing with headers very well. Inserting this to my custom rsvp.php’s php section doesn’t work:

    ————–
    function recaptcha_header() {
    wp_register_script (‘recaptcha’,’https://www.google.com/recaptcha/api.js’);
    wp_enqueue_script(‘recaptcha’);
    }
    add_action( ‘wp_enqueue_scripts’, ‘recaptcha_header’ );
    ————–

    I also don’t want to affect anything else than the RSVP page. What is the correct way? I think I can manage the form part.

Viewing 3 posts - 1 through 3 (of 3 total)