Tagged: datepicker, woocommerce
I am using Woocommerce with the Enfold theme and the date picker is going clear off the page. How do I fix this? Thank you in advance.
Hey BiancaFrankDesign,
Looks like we need to be logged in to be able to view your site? If so then please post admin login details in private.
Best regards,
Rikard
the date picker was fixed thanks so much. Can you also tell me how do I block out Saturday/ Sunday from being able to be selected?
Thanks
Hi,
Please firstly create a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/
Then copy unmodified enfold/framework/php/class-form-generator.php file and paste it inside enfold-child folder and find following at the top and remove it (please do not remove PHP opening tag)
if ( ! defined( 'AVIA_FW' ) ) exit( 'No direct script access allowed' );
and then add following code to Functions.php file of your child theme
require( 'class-form-generator.php' );
Then open class-form-generator.php file in your child theme and find
echo 'jQuery(document).ready(function(){ jQuery(".avia_datepicker").datepicker({
and add following code right below that line
beforeShowDay: function(date) {
var day = date.getDay();
return [(day != 0) && (day != 6)];
},
Best regards,
Yigit