Hi, I am using a plugin called Event Tickets Plus and I am trying to customize some it, based on instruction from the developers.
I am supposed to put the following code, which includes JQuery, in the functions.php file (in my Avada Child Theme). It doesn’t seem to be working and I’m wondering if there’s something about Avada that is preventing this implementation? I did switch the theme to Twenty Seventeen, and the customization did work, so it seems to be some conflict with Avada. Here’s the code:
function cliff_rsvp_default_quantity() {
wp_enqueue_script( ‘jquery’ );
?>
jQuery(document).ready( function () {
jQuery( ‘input.tribe-ticket-quantity’ ).val( 1 ).prop( ‘readonly’, true );
});
<?php
}
add_action( 'wp_head', 'cliff_rsvp_default_quantity' );