Hi andrianiannalisa,
Here is how to do that:
1. Create custom.js file (if your theme does not have one already) and put this code in it:
// Position "browse image" in comments above the "post comment" button
jQuery(function ($) {
$('p.form-allowed-tags').after($('#comment-image-wrapper'));
});
2. Upload custom.js file to your theme’s js folder (usually it is wwwroot/wp-content/themes/[your-theme]/js/)
3. Enqueue custom.js file to your theme. Here is a code that you need to paste to your functions.php theme file:
/**
* enqueue custom.js script
*/
function custom_script() {
wp_enqueue_script( 'custom', get_template_directory_uri() . '/js/custom.js', array(), '1.0.0', true );
}
add_action( 'wp_enqueue_scripts', 'custom_script' );
See here for reference: https://codex.www.ads-software.com/Function_Reference/wp_enqueue_script
That’s it!