Form tries to download a file on submit

To attach a file to the email, you need to specify the Path to it like this: <?php $attachments = array( WP_CONTENT_DIR . ‘/uploads/file_to_attach.zip’ ); $headers=”From: Test Name <[email protected]>” . “\r\n”; wp_mail( ‘[email protected]’, ‘subject’, ‘message’, $headers, $attachments ); ?> either is a string or an Array (for multiple files), you can see the accepted parameters … Read more

Submit to itself don’t work

$formtxt .= ‘<form style=”width: 800px;” name=”time_booking” action=”#” onsubmit=”return validateCalendarForm();” method = “POST”>’; action is set to #. maybe that is the cause. try removing that. action=”” additionally a js function validateCalendarForm() is calling on form submit. so check console for errors too. and lastly refresh permalink structure

Moving the “share” button

Well you can do this with css as well, to add button before add to cart, add the following css code in your theme style file i.e : style.css .ywsfd-social { position: absolute; bottom: 12%; left: 40px; margin: 15px 0px; } it will work ok till 1024 screen, you have to add media query to … Read more