Forum Replies Created
-
AuthorPosts
-
December 18, 2017 at 6:11 am in reply to: Generated iCal file has an empty first row, breaks import #1407763VilleParticipant
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
VilleParticipantHi Patricia,
Thanks for your help. I actually found this plugin which allows regex search and replace without modifying any code:
With that it is trivial to get rid of the imported shortcodes.regards,
Ville
VilleParticipantHi 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.
-
AuthorPosts