This commit is contained in:
rayelliott 2020-05-31 19:29:55 +00:00
parent 1f860d06a5
commit 49c56f9db0
1 changed files with 46 additions and 37 deletions

View File

@ -12,13 +12,22 @@
*/
function roomwithavw_custom_add_scripts() {
wp_register_script( 'roomwithavw-custom-script', plugins_url( 'assets/js/index.js', __FILE__ ), ['jquery-ui-datepicker'], '1.0', true );
wp_register_script( 'roomwithavw-custom-script', plugins_url( 'assets/js/index.js', __FILE__ ), '', '1.0', true );
wp_enqueue_script( 'roomwithavw-custom-script' );
wp_enqueue_style( 'roomwithavw-custom-styles', plugins_url( 'assets/css/style.css', __FILE__ ), '', '1.0' );
}
add_action( 'wp_enqueue_scripts', 'roomwithavw_custom_add_scripts' );
function roowitahvw_dequeue_scripts() {
wp_dequeue_script( LAYERS_THEME_SLUG . '-map-api' );
wp_deregister_script( LAYERS_THEME_SLUG . '-map-api' );
// wp_dequeue_script( LAYERS_THEME_SLUG . '-map-trigger' );
// wp_deregister_script( LAYERS_THEME_SLUG . '-map-trigger' );
}
add_action( 'wp_enqueue_scripts', 'roowitahvw_dequeue_scripts', 99 );
function roomwithavw_custom_enquiry_form() {
?>
<p class="lead">