Skip to content

Commit 288d4d9

Browse files
committedMay 8, 2018
add snippet for manually loading JS file
1 parent 9d9cf71 commit 288d4d9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎manually-load-javascript-file.php

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
/**
4+
* If you're having issues with the HTML Forms JavaScript file not being loaded,
5+
* you can use the following snippet to load it manually.
6+
*/
7+
add_action( 'wp_enqueue_scripts', function() {
8+
wp_enqueue_script('html-forms');
9+
}, 90 );

0 commit comments

Comments
 (0)
Please sign in to comment.